* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstrict-aliasing-bogus-vla-1.c
blob87f5ef9d1719f2c8c860cc0c8c8658e9aff5ed86
1 /* PR 41673: bogus -Wstrict-aliasing warning from VLA dereference. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -O2 -Wall" } */
4 /* { dg-require-effective-target alloca } */
6 int main(int argc, char *argv[])
8 float x[argc];
9 float y[argc];
10 return 0 == __builtin_memcpy(y, x, argc * sizeof(*x));