summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-3824.c
blob: 58a3fa4e969fe5ee591140ae0f2027cd20f54693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** bug-3824.c: A z80 peephole optimize rule error that resulted in a missing label in the assembler code.
 */

#include <testfwk.h>

char f(char *c);

void g(void)
{
	char c[4];
	if(f(c))
		return;
	if(f(c))
		return;
}

char f(char *c)
{
	c[0] = 0;
}