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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh31.C
blob
d7e84dd71e0efc5c7ce79aec087107991a6c9520
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
int count;
5
6
class Foo {
7
public:
8
Foo() { ++count; }
9
Foo(const Foo&) { ++count; }
10
~Foo() { --count; }
11
};
12
13
14
int
15
main() {
16
try {
17
throw Foo();
18
}
19
catch (Foo& object) {
20
if (count == 1)
21
return 0;
22
}
23
return 1;
24
}