From b4f2fe9176e37d971654c4997be4d07b8252bfc0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 14 Jun 2000 10:59:54 +0200 Subject: [PATCH] eh1.C: New test. * g++.old-deja/g++.other/eh1.C: New test. * g++.old-deja/g++.other/type.C: New test. * g++.old-deja/g++.other/initstring.C: New test. From-SVN: r34545 --- gcc/testsuite/ChangeLog | 12 +++++++++++ gcc/testsuite/g++.old-deja/g++.other/eh1.C | 21 +++++++++++++++++++ .../g++.old-deja/g++.other/initstring.C | 3 +++ gcc/testsuite/g++.old-deja/g++.other/type.C | 15 +++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/eh1.C create mode 100644 gcc/testsuite/g++.old-deja/g++.other/initstring.C create mode 100644 gcc/testsuite/g++.old-deja/g++.other/type.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2f620c624a6..8f5229936cf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2000-06-13 Jakub Jelinek + + * g++.old-deja/g++.other/eh1.C: New test. + +2000-06-12 Jakub Jelinek + + * g++.old-deja/g++.other/type.C: New test. + +2000-06-05 Jakub Jelinek + + * g++.old-deja/g++.other/initstring.C: New test. + 2000-06-12 Jason Merrill * g++.old-deja/old-deja.exp: Add -Wno-long-long. diff --git a/gcc/testsuite/g++.old-deja/g++.other/eh1.C b/gcc/testsuite/g++.old-deja/g++.other/eh1.C new file mode 100644 index 00000000000..515a77d3018 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/eh1.C @@ -0,0 +1,21 @@ +// Build don't link: + +class C2 { +public: + ~C2(); + C2 a() const; +}; +class C3 { +public: + C3(const C2 &c); +}; +class C4 +{ +public: + C3 *foo(bool b, const C2 &c); + C2 d() const; +}; +C3 *C4::foo(bool b, const C2 &c) +{ + return new C3(b ? d().a() : c); +} diff --git a/gcc/testsuite/g++.old-deja/g++.other/initstring.C b/gcc/testsuite/g++.old-deja/g++.other/initstring.C new file mode 100644 index 00000000000..f194bfc4dd1 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/initstring.C @@ -0,0 +1,3 @@ +// Build don't link: + +static const char foo[] = { "bar" }; diff --git a/gcc/testsuite/g++.old-deja/g++.other/type.C b/gcc/testsuite/g++.old-deja/g++.other/type.C new file mode 100644 index 00000000000..a7dcde119e4 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/type.C @@ -0,0 +1,15 @@ +// Build don't link: + +typedef unsigned short ushort; +class foo { +public: + static ushort a; +}; +extern "C" { +typedef unsigned short ushort; +} +ushort foo::a; +static int baz() +{ + return foo::a; +} -- 2.30.2