summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/aggr6.C
blob: 98628d255abca9d2a6b3cfa2aeb3f117561e479f (plain)
1
2
3
4
5
6
7
8
9
10
11
// Origin PR c++/40239
// { dg-do compile }

struct B { B() { } private: B(B const&); };
struct A { int a; B b; };

int
main()
{
  A a = {};
}