summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-02 21:00:00 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-02 21:00:00 +0000
commitf3ccb8f1cadfa345c32183efe2cd3038b1599fc0 (patch)
tree7198646f1a9ef6695dc043040c29ef3a5b08f871 /gcc
parent5c20641d435b29e081e68456ed8ded96e05b9bb9 (diff)
downloadgcc-f3ccb8f1cadfa345c32183efe2cd3038b1599fc0.tar.gz
* g++.old-deja/g++.eh/catch13.C: New test.
* g++.old-deja/g++.eh/catch14.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41774 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/catch13.C19
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/catch14.C33
3 files changed, 57 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index af464e59bff..e31db61c3a5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2001-05-02 Jakub Jelinek <jakub@redhat.com>
+ * g++.old-deja/g++.eh/catch13.C: New test.
+ * g++.old-deja/g++.eh/catch14.C: New test.
+
+2001-05-02 Jakub Jelinek <jakub@redhat.com>
+
* gcc.dg/cpp/tr-define.c: New test.
2001-05-01 Loren J. Rittle <ljrittle@acm.org>
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/catch13.C b/gcc/testsuite/g++.old-deja/g++.eh/catch13.C
new file mode 100644
index 00000000000..47a0c90b963
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.eh/catch13.C
@@ -0,0 +1,19 @@
+// Copyright (C) 2001 Free Software Foundation, Inc.
+// Contributed by Jakub Jelinek 2 May 2001 <jakub@redhat.com>
+
+// Build don't link:
+// Special g++ Options: -O2
+
+struct A;
+
+A *foo();
+
+struct A {
+ A *a() { try { return foo(); } catch (...) {} }
+ void b();
+ void c();
+};
+
+void A::b() {
+ a()->c();
+}
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/catch14.C b/gcc/testsuite/g++.old-deja/g++.eh/catch14.C
new file mode 100644
index 00000000000..96be4640bad
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.eh/catch14.C
@@ -0,0 +1,33 @@
+// Copyright (C) 2001 Free Software Foundation, Inc.
+// Contributed by Jakub Jelinek 2 May 2001 <jakub@redhat.com>
+
+// Build don't link:
+// Special g++ Options: -O1
+
+void foo();
+
+struct A {
+ A (int x) { };
+ ~A() {
+ try {
+ foo ();
+ } catch (...) { }
+ };
+};
+
+struct B;
+
+B *x;
+
+struct B {
+ void a();
+ void b();
+ static B* c() {
+ A y = 0;
+ return x;
+ };
+};
+
+void B::a() {
+ c()->b();
+}