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

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

  S (int) {
  }
};

int main()
{
  S s[3][3] = { 2 };

  if (i != 8)
    return 1;
}