PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / pr46562-2.c
blob3c644040179778fb035317c04859a62625a1eaeb
1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-tree-ccp -fno-tree-forwprop -fdump-tree-fre1" } */
4 static const int a[4] = {};
5 int foo(void)
7 int i = 1;
8 const int *p = &a[i];
9 return *p;
12 /* { dg-final { scan-tree-dump "return 0;" "fre1" } } */