blob: 6f8ba6bf45da87301943712d5ac4309556acfeb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do run } */
/* { dg-options "-fsanitize=null -w" } */
/* { dg-shouldfail "ubsan" } */
int
main (void)
{
unsigned long int *p = 0;
*p = 42;
return 0;
}
/* { dg-output "store to null pointer of type 'long unsigned int'\[^\n\r]*(\n|\r\n|\r)" } */
|