blob: 7123e4deb51bec311a81d59edff568946d8bfc86 [file] [log] [blame]
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
*/