new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 19 Aug 1999 21:18:22 +0000 (17:18 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 19 Aug 1999 21:18:22 +0000 (17:18 -0400)
From-SVN: r28766

gcc/testsuite/g++.old-deja/g++.pt/repo1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo1.C b/gcc/testsuite/g++.old-deja/g++.pt/repo1.C
new file mode 100644 (file)
index 0000000..f57b2c2
--- /dev/null
@@ -0,0 +1,18 @@
+// Bug: g++ complains about duplicate explicit instantiations with -frepo.
+// From Jason Merrill <jason@cygnus.com>
+
+// Build then link:
+// Special g++ Options: -frepo
+
+template <class T> struct A {
+  virtual ~A () { }
+};
+
+template <class T> void g (T t) { }
+
+template class A<int>;
+
+int main ()
+{
+  g (42);
+}