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

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

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


int main ()
{
  C c;

  if (i != 1)
    return 1;
}