FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / array1.C
blob0ecba7778aa4f710afa0d2be40f96e09384f05ef
1 int i;
3 struct S {
4   S (int) {
5     ++i;
6     if (i == 3)
7       throw 3;
8   };
10   S () {}
12   ~S() {
13     --i;
14   }
17 int main()
19   try {
20     S s[5] = { 0, 1, 2, 3, 4 };
21   } catch (...) {
22   }
24   if (i != 1)
25     return 1;