comparison gcc/testsuite/c-c++-common/pr46562.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
3
4 static const int a[4] = {};
5 int foo(void)
6 {
7 int i = 1;
8 const int *p = &a[i];
9 return *p;
10 }
11
12 /* { dg-final { scan-tree-dump "return 0;" "ccp1" } } */