Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51491-2.c
blob429ee4e59149c8ea8b92e8f41a7e03110d52f7db
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ccp1" } */
3 /* { dg-require-effective-target alloca } */
5 int g (int *);
7 int
8 f (int n)
10 int tt = 0;
11 int t = 4;
13 int a[t
14 + (tt != 0 ? 6 : 0)
16 tt = g (a);
18 int b[n];
19 tt += g (b);
20 if (n > 20)
21 tt += 148 * g (b);
22 tt += b[0];
24 tt += a[0];
27 int a[4];
28 tt += g (a);
29 tt += a[0];
31 return tt;
34 /* { dg-final { scan-tree-dump-times "CLOBBER" 2 "ccp1"} } */