PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loadpre22.c
blobf120b33a56cf4c3ac53d90f540d67683c2d08b8d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-loop-im -fdump-tree-pre-stats" } */
3 typedef int type[2];
4 int main(type *a, int argc)
6 int i;
7 int e;
9 /* Should be able to hoist this out of the loop. */
10 for (i = 0; i < argc; i++)
12 e = (*a)[argc];
14 return e;
17 /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */