Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstrict-aliasing-bogus-vla-1.c
blobe9f63d36872e19412da685d1b517c5926f652dc3
1 /* PR 41673: bogus -Wstrict-aliasing warning from VLA dereference. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -O2 -Wall" } */
5 int main(int argc, char *argv[])
7 float x[argc];
8 float y[argc];
9 return 0 == __builtin_memcpy(y, x, argc * sizeof(*x));