2013-05-24 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51491-2.c
blob79adcf6525ed3366c42afbc17adaeb6206d816a8
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ccp1" } */
4 int g (int *);
6 int
7 f (int n)
9 int tt = 0;
10 int t = 4;
12 int a[t
13 + (tt != 0 ? 6 : 0)
15 tt = g (a);
17 int b[n];
18 tt += g (b);
19 if (n > 20)
20 tt += 148 * g (b);
21 tt += b[0];
23 tt += a[0];
26 int a[4];
27 tt += g (a);
28 tt += a[0];
30 return tt;
33 /* { dg-final { scan-tree-dump-times "CLOBBER" 2 "ccp1"} } */
34 /* { dg-final { cleanup-tree-dump "ccp1" } } */