* 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
+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.
--- /dev/null
+// 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);
+}
--- /dev/null
+// Build don't link:
+
+static const char foo[] = { "bar" };
--- /dev/null
+// 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;
+}