re PR sanitizer/60535 (Link failure with -flto and -fsanitize=undefined)
[gcc.git] / gcc / testsuite / c-c++-common / ubsan / null-5.c
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=null -w" } */
3 /* { dg-shouldfail "ubsan" } */
4
5 typedef volatile const _Complex float *T;
6
7 int
8 main (void)
9 {
10 T t = 0;
11 if (*t)
12 return 42;
13 return 0;
14 }
15
16 /* { dg-output "load of null pointer of type 'volatile const complex float'(\n|\r\n|\r)" } */