Merge from trunk
[official-gcc.git] / gcc / testsuite / c-c++-common / ubsan / null-5.c
blobf6db4744446e74f49b2377086c5fe9eedd362124
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=null -w" } */
3 /* { dg-shouldfail "ubsan" } */
4 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
6 typedef volatile const _Complex float *T;
8 int
9 main (void)
11 T t = 0;
12 if (*t)
13 return 42;
14 return 0;
17 /* { dg-output "load of null pointer of type 'volatile const complex float'(\n|\r\n|\r)" } */