f6db4744446e74f49b2377086c5fe9eedd362124
[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 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
5
6 typedef volatile const _Complex float *T;
7
8 int
9 main (void)
10 {
11 T t = 0;
12 if (*t)
13 return 42;
14 return 0;
15 }
16
17 /* { dg-output "load of null pointer of type 'volatile const complex float'(\n|\r\n|\r)" } */