summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/aggr5.C
blob: c1844f8ff88c550211743dcefd37ca508772e39c (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 = {0};
}