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
* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p7912.C
blob
e5584ec4cd9196bf079b425fb802872989af7904
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
// prms-id: 7912
4
5
int count = 0;
6
7
class Foo {
8
public:
9
Foo() { ++count; };
10
Foo(const Foo&) { ++count; };
11
~Foo() { --count; };
12
};
13
14
15
main()
16
{
17
try {
18
throw Foo();
19
}
20
catch (Foo object) {
21
}
22
return count;
23
}