OSDN Git Service

* g++.old-deja/g++.other/eh3.C: New testcase.
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Dec 2000 01:37:13 +0000 (01:37 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Dec 2000 01:37:13 +0000 (01:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38123 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/eh3.C [new file with mode: 0644]

index 1888db7..0c5aca0 100644 (file)
@@ -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,
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 (file)
index 0000000..28c4fd7
--- /dev/null
@@ -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;
+}