Merge branches/gcc-4_8-branch rev 208968.
[official-gcc.git] / gcc-4_8-branch / gcc / testsuite / c-c++-common / pr46562.c
blob30659070f016a3b9c89a0c67f485b28f2364be6a
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
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;" "ccp1" } } */
13 /* { dg-final { cleanup-tree-dump "ccp1" } } */