Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr40792.c
blob41f080e542ef46a39ec544d762c9802f61dc712c
1 /* PR tree-optimization/40792 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
5 void foo (int, char *, int *);
7 void
8 bar (int *a, int *b, ...)
10 int c;
11 char d[256];
12 foo (*b, d, &c);
15 static int a, b;
17 void
18 baz (int c)
20 bar (&a, &b);