OSDN Git Service

* g++.old-deja/g++.other/eh1.C: New test.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jun 2000 08:59:54 +0000 (08:59 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jun 2000 08:59:54 +0000 (08:59 +0000)
* g++.old-deja/g++.other/type.C: New test.
* g++.old-deja/g++.other/initstring.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34545 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2f620c6..8f52299 100644 (file)
@@ -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 (file)
index 0000000..515a77d
--- /dev/null
@@ -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 (file)
index 0000000..f194bfc
--- /dev/null
@@ -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 (file)
index 0000000..a7dcde1
--- /dev/null
@@ -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;
+}