2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56098-2.c
blob3c967b52507c464a8d3c90325698ae4e54b89dbe
1 /* PR tree-optimization/56098 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fhoist-adjacent-loads -fdump-tree-optimized" } */
5 struct S { volatile int i; volatile int j; };
7 int
8 bar (struct S *x, int y)
10 int r;
11 if (y)
12 r = x->i;
13 else
14 r = x->j;
15 return r;
18 /* { dg-final { scan-tree-dump-not "r_\[0-9]* =.v. \[^\n\r]*;\[\n\r]* r_\[0-9]* =.v. " "optimized" } } */
19 /* { dg-final { cleanup-tree-dump "optimized" } } */