aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-06-14 10:59:54 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2000-06-14 10:59:54 +0200
commitb4f2fe9176e37d971654c4997be4d07b8252bfc0 (patch)
tree5b41c13ddbe5326fedb63ee105fd88639cc213a1 /gcc
parenta323eb242fa10460a10e5c8ba13e74a4f98953d7 (diff)
downloadgcc-b4f2fe9176e37d971654c4997be4d07b8252bfc0.zip
gcc-b4f2fe9176e37d971654c4997be4d07b8252bfc0.tar.gz
gcc-b4f2fe9176e37d971654c4997be4d07b8252bfc0.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog12
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/eh1.C21
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/initstring.C3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/type.C15
4 files changed, 51 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2f620c6..8f52299 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,15 @@
+2000-06-13 Jakub Jelinek <jakub@redhat.com>
+
+ * g++.old-deja/g++.other/eh1.C: New test.
+
+2000-06-12 Jakub Jelinek <jakub@redhat.com>
+
+ * g++.old-deja/g++.other/type.C: New test.
+
+2000-06-05 Jakub Jelinek <jakub@redhat.com>
+
+ * g++.old-deja/g++.other/initstring.C: New test.
+
2000-06-12 Jason Merrill <jason@redhat.com>
* 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 0000000..515a77d
--- /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 0000000..f194bfc
--- /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 0000000..a7dcde1
--- /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;
+}