OSDN Git Service

2011-11-01 Tom de Vries <tom@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / foldconst-5.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
3
4
5 static const char a[5]="t";
6 static const int b[5]={1,2};
7 static const struct a {int a : 6; int b : 6;} c = {5,9};
8 test()
9 {
10   return a[2]+b[1]+b[3]+c.b;
11 }
12 /* { dg-final { scan-tree-dump "return 11;" "ccp1" } } */
13 /* { dg-final { cleanup-tree-dump "ccp1" } } */
14