2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr43864-4.c
blob42adfeefe952d6f858b7ba2a9bf9ba1143a95ec4
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre" } */
4 /* Different stmt order. */
6 int f(int c, int b, int d)
8 int r, r2, e;
10 if (c)
12 r = b + d;
13 r2 = d - b;
15 else
17 r2 = d - b;
18 e = d + b;
19 r = e;
22 return r - r2;
25 /* { dg-final { scan-tree-dump-times "if " 0 "pre"} } */
26 /* { dg-final { scan-tree-dump-times "_.*\\\+.*_" 1 "pre"} } */
27 /* { dg-final { scan-tree-dump-times " - " 2 "pre"} } */
28 /* { dg-final { scan-tree-dump-not "Invalid sum" "pre"} } */
29 /* { dg-final { cleanup-tree-dump "pre" } } */