2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / array1.C
blob1907c42526e6563cf8ce7a6b287edfa2d6e6d677
1 // { dg-do run  }
2 int i;
4 struct S {
5   S (int) {
6     ++i;
7     if (i == 3)
8       throw 3;
9   };
11   S () {}
13   ~S() {
14     --i;
15   }
18 int main()
20   try {
21     S s[5] = { 0, 1, 2, 3, 4 };
22   } catch (...) {
23   }
25   if (i != 1)
26     return 1;