summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-2163.c
blob: 22f377009f3f235748422d4a28e6ccb5f71e54d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*	bug-2163.c
*/

#include <testfwk.h>

void foo(void)
{
}

unsigned char a;

/* No need to run, generated error 56: Duplicate label '_iftrue_0' */
int bug2163(void)
{
    if (a)
		foo();
iftrue_0:
_iftrue_0:
    return 0;
}

void bar(const char* s)
{
	s;
}

char str_0[] = "mystring";
char _str_0[] = "mystring";

void testBug(void)
{
	/* creates string constant which gave
	   error 177: Duplicate symbol '_str_0', symbol IGNORED */
	bar("test");
	ASSERT(1);
}