In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr38984.c
blob11f1e7f211a695531c9c0925aa7ec719ebd985c7
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-delete-null-pointer-checks -fdump-tree-optimized" }
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" } } */