2013-05-29 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr51895.C
blob84ac5e9962f95fe54c98b26ea42adea110e9cc4c
1 // PR middle-end/51895
2 // { dg-do compile }
3 // { dg-options "-O2" }
5 struct S
7   long a;
8   char b;
9   S () : a (0), b (0) {}
10   bool baz ();
13 __attribute__((noinline)) static bool
14 bar (S x, S y)
16   y = x;
17   return y.baz ();
20 bool
21 foo (S x)
23   S y;
24   return bar (x, y);