2014-04-15 Max Ostapenko <m.ostapenko@partner.samsung.com>
[official-gcc.git] / gcc / testsuite / c-c++-common / ubsan / null-4.c
blob7c0aa2c70aad1eda76e8f9e0fbcd10be7d973dcb
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=null -w" } */
3 /* { dg-shouldfail "ubsan" } */
5 int
6 main (void)
8 _Complex double *p = 0;
9 if (p[0])
10 return 42;
11 return 0;
14 /* { dg-output "load of null pointer of type 'complex double'\[^\n\r]*(\n|\r\n|\r)" } */