Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / foldconst-4.c
blob0e9b676f66bd10112cad6fe543ecafc49f064aa0
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp2" } */
4 struct a {int a,b;};
5 const static struct a a;
6 static int b[10];
7 int c;
8 int
9 test()
11 return a.a+b[c];
13 /* { dg-final { scan-tree-dump "return 0;" "ccp2" } } */