2018-10-23 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr37356.C
blob45b99a037b9693e8bfe16d03aa9cb908df893a15
1 // PR middle-end/37356 */
2 // { dg-do compile }
3 // { dg-options "-O" }
5 bool foo ();
6 int bar ();
8 bool
9 baz (int v)
11   return v == bar ();
14 struct A
16   A () { baz (1) || foo (); }
19 struct B
21   static A get () { return A (); }
22   B (const int &x) { }
23   B () : b (get ()) { }
24   A b;
27 B c;
29 void
30 test ()
32   int d;
33   c = d;