Debian Codegraph @

gcc/testsuite/g++.dg/tree-ssa/pr37356.C

raw
1 // PR middle-end/37356 */
2 // { dg-do compile }
3 // { dg-options "-O" }
4
5 bool foo ();
6 int bar ();
7
8 bool
9 baz (int v)
10 {
11 return v == bar ();
12 }
13
14 struct A
15 {
16 A () { baz (1) || foo (); }
17 };
18
19 struct B
20 {
21 static A get () { return A (); }
22 B (const int &x) { }
23 B () : b (get ()) { }
24 A b;
25 };
26
27 B c;
28
29 void
30 test ()
31 {
32 int d;
33 c = d;
34 }