repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
array1.C
blob
0ecba7778aa4f710afa0d2be40f96e09384f05ef
1
int i;
2
3
struct S {
4
S (int) {
5
++i;
6
if (i == 3)
7
throw 3;
8
};
9
10
S () {}
11
12
~S() {
13
--i;
14
}
15
};
16
17
int main()
18
{
19
try {
20
S s[5] = { 0, 1, 2, 3, 4 };
21
} catch (...) {
22
}
23
24
if (i != 1)
25
return 1;
26
}