aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/label-redefined.c
blob: c98e815c1f950a840069b8460dcb4f99f9b8a0af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern void fun(void);

static void foo(int p)
{
l:
	if (p)
l:
		fun();
}

/*
 * check-name: label-redefined
 *
 * check-error-start
label-redefined.c:7:1: error: label 'l' redefined
 * check-error-end
 */