libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.dg / pr38984.c
blob3ccb0e492fccc004e4372d6f7dbacf16f88f2e61
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-delete-null-pointer-checks -fdump-tree-optimized -fno-isolate-erroneous-paths-dereference" }
3 * */
5 int f(int *p)
7 int a = *p;
8 int *null = 0;
9 *null = 5;
10 return *p == a;
13 /* { dg-final { scan-tree-dump-times "\\\*p" 2 "optimized" } } */
14 /* { dg-final { scan-tree-dump-not "return 1" "optimized" } } */
15 /* { dg-final { cleanup-tree-dump "optimized" } } */