Revert DECL_USER_ALIGN part of r241959
[official-gcc.git] / gcc / testsuite / gcc.dg / pr50290.c
blob47680fd9a72cb1791095f6528d26fe65b7784d7a
1 /* PR rtl-optimization/50290 */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -fno-tree-loop-optimize -fno-tree-vrp -funroll-loops" } */
5 static int
6 bar (int t[], int b)
8 int i;
9 for (i = 0; i < b; i++)
10 t[i] = i + (i > 0 ? t[i - 1] : 0);
11 return t[b - 1];
14 static int
15 foo (int b)
17 int x[b];
18 return bar (x, b);
21 int
22 main ()
24 if (foo (6) != 15)
25 __builtin_abort ();
26 return 0;