aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/label-unused.c
blob: a654ef7742beac94b0a7de40f5a4305d0b47b436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
static void foo(void)
{
l:
	return;
}

static int bar(void)
{
	return  ({
l:
		;
		0;
	});
}

/*
 * check-name: label-unused
 *
 * check-error-start
label-unused.c:3:1: warning: unused label 'l'
label-unused.c:10:1: warning: unused label 'l'
 * check-error-end
 */