summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/init10.C
blob: fa238132f3f4b2889dd5be5c4f151b096246e49d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
int i;

struct D {
  D () {
    i++;
  }
};

struct C {
  C() {}
    
  D d[1];
};


int main ()
{
  C c;

  if (i != 1)
    return 1;
}