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
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
eh3.C
blob
4e61892828634df0eb4a6d83fcc63100c1b3f071
1
// { dg-do run }
2
// { dg-options "-O" }
3
typedef struct { } e;
4
5
char *p;
6
7
void _Jv_throw ();
8
9
int barf (int len)
10
{
11
char a[len];
12
13
p = a;
14
_Jv_throw ();
15
return 0;
16
}
17
18
void _Jv_throw ()
19
{
20
e ex;
21
throw ex;
22
}
23
24
int main ()
25
{
26
try {
27
barf (2);
28
}
29
catch (...) {
30
}
31
32
return 0;
33
}