Disable gnat.dg/socket1.adb on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / c-c++-common / ubsan / null-7.c
blob19c21da45626660ad587c1e1fbbfbd1d62b9f909
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=null -w" } */
3 /* { dg-shouldfail "ubsan" } */
5 int *
6 gao (void)
8 return 0;
11 int
12 main (void)
14 return *gao ();
17 /* { dg-output "load of null pointer of type 'int'" } */