summaryrefslogtreecommitdiff
path: root/usr/src/tools/smatch/src/validation/constexpr-labelref.c
blob: 15b5293aeb3ce9064ec52d580e1a97b8478f61b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
static void a(void)
{
label1:
	;
	static void *b = &&label1;
}

/*
 * check-name: label reference constness verification.
 * check-command: sparse -Wconstexpr-not-const $file
 *
 * check-error-start
 * check-error-end
 */