blob: 26dc22c6dd9e5c64f97ae138e9b076803dea9670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-do run } */
/* { dg-options "-fsanitize=null -w" } */
/* { dg-shouldfail "ubsan" } */
int
main (void)
{
int *p = 0;
return *p;
}
/* { dg-output "load of null pointer of type 'int'" } */
|