aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/label-unused.c
blob: c136c7a8813e5f265322759c5c18305686817a4f (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
static void foo(void)
{
l:
	return;
}

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

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