summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/aggr3.C
blob: 3376897e105ccec43a43583442fbca57cb8e4af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/18793

struct S { 
  S(); 
  S(const S&); 
  void operator=(const S&); 
}; 
 
struct X { 
  int a, b, c, d, e; 
  S s; 
}; 
 
void foobar () { 
  X x = {0}; 
}