* g++.old-deja/g++.pt/instantiate6.C: New test.
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Nov 1998 20:03:21 +0000 (20:03 +0000)
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Nov 1998 20:03:21 +0000 (20:03 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23911 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 5dedf85..4780eff 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();
+}