Rebase.
[official-gcc.git] / gcc / testsuite / c-c++-common / ubsan / null-5.c
blobf7f6b86d31760a42393753910496748a5cf3a1df
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=null -w" } */
3 /* { dg-shouldfail "ubsan" } */
5 typedef volatile const _Complex float *T;
7 int
8 main (void)
10 T t = 0;
11 if (*t)
12 return 42;
13 return 0;
16 /* { dg-output "load of null pointer of type 'volatile const complex float'\[^\n\r]*(\n|\r\n|\r)" } */