OSDN Git Service

PR c++/35116
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / init / value2.C
1 // PR c++/35116
2 // Test that break_out_target_exprs works properly with complex
3 // value-initialization.
4
5 struct A
6 {
7   virtual void f ();
8 };
9
10 struct B
11 {
12   A a;
13 };
14
15 struct C
16 {
17   C (int, B = B());
18 };
19
20 void f ()
21 {
22   C c (4);
23 }