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