LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / pr33238.c
blob993384a186de3fc1d6b579f324f8aa1d2c4818ae
1 /* PR c/33238 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu89" } */
4 /* { dg-require-effective-target alloca } */
6 void
7 reverse (void *x, int y, int z)
9 struct { char w[z]; } *p = x, a;
10 int i, j;
11 for (i = y - 1, j = 0; j < y / 2; i--, j++)
12 ({ a = p[i]; p[i] = p[j]; p[j] = a; });