catch13.C: New test.
* g++.old-deja/g++.eh/catch13.C: New test. * g++.old-deja/g++.eh/catch14.C: New test. From-SVN: r41774
This commit is contained in:
parent
2d2a86ae79
commit
de26cf808f
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
19
gcc/testsuite/g++.old-deja/g++.eh/catch13.C
Normal file
19
gcc/testsuite/g++.old-deja/g++.eh/catch13.C
Normal file
@ -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();
|
||||
}
|
33
gcc/testsuite/g++.old-deja/g++.eh/catch14.C
Normal file
33
gcc/testsuite/g++.old-deja/g++.eh/catch14.C
Normal file
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user