2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / unreachable.c
blob8a13c60c5c158b284cfa4c11a7dd1c4a670c6109
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized -fdelete-null-pointer-checks" } */
3 static void bad_boy()
6 int
7 main()
9 void *t=(void *)bad_boy;
10 if (!t)
11 return 1;
12 return 0;
14 /* { dg-final { scan-tree-dump-not "bad_boy" "optimized" { target { ! keeps_null_pointer_checks } } } } */