aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/init/aggr7.C
blob: bec952c230cb93e60f6c6772419def01068d4b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/50866

struct A { A(); ~A(); };
struct B { B(const char *, const A& = A()); ~B(); };
struct C {
  B b1, b2;
};
void f()
{
     C c = {
          "a","b"
     };
}