aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/sizeof-builtin.c
blob: 7123e4deb51bec311a81d59edff568946d8bfc86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int test(void);
int test(void)
{
	return sizeof &__builtin_trap;
}

/*
 * check-name: sizeof-builtin
 * check-command: sparse -Wno-decl $file
 * check-known-to-fail
 *
 * check-error-start
sizeof-function.c:4:16: error: expression using addressof on a builtin function
 * check-error-end
 */