* g++.old-deja/g++.pt/instantiate6.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 26 Nov 1998 20:03:21 +0000 (20:03 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Thu, 26 Nov 1998 20:03:21 +0000 (20:03 +0000)
From-SVN: r23911

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

index 5dedf85237d1677a73b953bc7253061df91f6797..4780eff6ad5f850e69d1573b8358814096f809df 100644 (file)
@@ -1,5 +1,7 @@
 1998-11-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.pt/instantiate6.C: New test.
+
        * g++.old-deja/g++.pt/static6.C: New test.
 
        * g++.old-deja/g++.pt/decl2.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C
new file mode 100644 (file)
index 0000000..ff0114d
--- /dev/null
@@ -0,0 +1,26 @@
+// Build then link:
+// Special g++ Options: -frepo
+
+// Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
+// causes linker error - XFAIl *-*-*
+
+template <class T>
+class foo{
+public:
+  void g();
+  void h();
+};
+
+template <class T>
+void foo<T>::g() {
+  h();
+}
+
+template <class T>
+void foo<T>::h() {
+}
+
+int main() {
+  foo<int> f;
+  f.g();
+}