mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 22:03:57 +08:00
* g++.old-deja/g++.other/eh3.C: New testcase.
From-SVN: r38123
This commit is contained in:
parent
54d7f9aa04
commit
f3588f1aad
@ -1,3 +1,7 @@
|
||||
2000-12-07 Geoffrey Keating <geoffk@redhat.com>
|
||||
|
||||
* g++.old-deja/g++.other/eh3.C: New testcase.
|
||||
|
||||
2000-12-07 Neil Booth <neilb@earthling.net>
|
||||
|
||||
* gcc.dg/wtr-aggr-init-1.c, wtr-escape-1.c, wtr-int-type-1.c,
|
||||
|
32
gcc/testsuite/g++.old-deja/g++.other/eh3.C
Normal file
32
gcc/testsuite/g++.old-deja/g++.other/eh3.C
Normal file
@ -0,0 +1,32 @@
|
||||
// Special g++ Options: -O
|
||||
typedef struct { } e;
|
||||
|
||||
char *p;
|
||||
|
||||
void _Jv_throw ();
|
||||
|
||||
int barf (int len)
|
||||
{
|
||||
char a[len];
|
||||
|
||||
p = a;
|
||||
_Jv_throw ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void _Jv_throw ()
|
||||
{
|
||||
e ex;
|
||||
throw ex;
|
||||
}
|
||||
|
||||
int main ()
|
||||
{
|
||||
try {
|
||||
barf (2);
|
||||
}
|
||||
catch (...) {
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user