Rebase.
[official-gcc.git] / gcc / testsuite / c-c++-common / ubsan / null-11.c
blob6aefaab00340d6bbca7f60f52bbf533b1b365458
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=null -w" } */
3 /* { dg-shouldfail "ubsan" } */
5 struct S {
6 int i;
7 };
9 int
10 main (void)
12 struct S **s = 0;
13 return (*s)->i;
16 /* { dg-output "load of null pointer of type 'struct S \\*'\[^\n\r]*(\n|\r\n|\r)" } */