OSDN Git Service

* g++.old-deja/g++.pt/instantiate6.C: New test.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / instantiate6.C
1 // Build then link:
2 // Special g++ Options: -frepo
3
4 // Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
5 // causes linker error - XFAIl *-*-*
6
7 template <class T>
8 class foo{
9 public:
10   void g();
11   void h();
12 };
13
14 template <class T>
15 void foo<T>::g() {
16   h();
17 }
18
19 template <class T>
20 void foo<T>::h() {
21 }
22
23 int main() {
24   foo<int> f;
25   f.g();
26 }