Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-lim-3.c
blobf059d5a02095a7c11caf72276d1d293ce132472a
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-lim2-details" } */
4 struct { int x; int y; } global;
5 void foo(int n)
7 int i;
8 for ( i=0; i<n; i++)
9 global.y += global.x*global.x;
12 /* { dg-final { scan-tree-dump "Executing store motion of global.y" "lim2" } } */
13 /* { dg-final { scan-tree-dump "Moving statement.*global.x.*out of loop 1" "lim2" } } */