From f3588f1aadd8d52686c3f18f7a07744a33bb4f6d Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Fri, 8 Dec 2000 01:37:13 +0000 Subject: [PATCH] * g++.old-deja/g++.other/eh3.C: New testcase. From-SVN: r38123 --- gcc/testsuite/ChangeLog | 4 +++ gcc/testsuite/g++.old-deja/g++.other/eh3.C | 32 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/eh3.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1888db7b120..0c5aca0db2e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-12-07 Geoffrey Keating + + * g++.old-deja/g++.other/eh3.C: New testcase. + 2000-12-07 Neil Booth * gcc.dg/wtr-aggr-init-1.c, wtr-escape-1.c, wtr-int-type-1.c, diff --git a/gcc/testsuite/g++.old-deja/g++.other/eh3.C b/gcc/testsuite/g++.old-deja/g++.other/eh3.C new file mode 100644 index 00000000000..28c4fd76c25 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/eh3.C @@ -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; +}