]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/ubsan/null-2.c
config/
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / ubsan / null-2.c
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=null -w" } */
3 /* { dg-shouldfail "ubsan" } */
4 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
5
6 int
7 main (void)
8 {
9 int ***ppp = 0;
10 return ***ppp;
11 }
12
13 /* { dg-output "load of null pointer of type 'int \\*\\*'(\n|\r\n|\r)" } */