repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
eh
/
unwind1.C
blob
da7aa98fe59362eca7969987e0a37aa0c9882584
1
// PR middle-end/28493
2
3
extern "C" void abort ();
4
5
struct Command *ptr;
6
7
struct Command {
8
Command() { ptr = this; }
9
virtual ~Command() { if (ptr != this) abort(); }
10
};
11
12
void tryfunc()
13
{
14
Command cmd;
15
throw 1;
16
}
17
18
int main()
19
{
20
try
21
{
22
tryfunc();
23
}
24
catch (int) { }
25
}