db/fixup_kernel.sh: fix clear_user() handling
[smatch.git] / validation / sizeof-builtin.c
blob7123e4deb51bec311a81d59edff568946d8bfc86
1 int test(void);
2 int test(void)
4 return sizeof &__builtin_trap;
7 /*
8 * check-name: sizeof-builtin
9 * check-command: sparse -Wno-decl $file
10 * check-known-to-fail
12 * check-error-start
13 sizeof-function.c:4:16: error: expression using addressof on a builtin function
14 * check-error-end