LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-tree-pre-pr45241.c
blob6535fd7e598a318b7051445513de7b2307a20590
1 /* PR tree-optimization/45241 */
2 /* { dg-do compile } */
4 int
5 foo (short x)
7 short i, y;
8 int sum;
10 for (i = 0; i < x; i++)
11 y = x * i;
13 for (i = x; i > 0; i--)
14 sum += y;
16 return sum;