OSDN Git Service

beccdc253fe179e51f0f43fc9f96274276045915
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / instantiate6.C
1 // { dg-do link }
2 // { dg-options "-frepo" }
3 // Build then link:
4
5 // Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
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 }
27
28 // { dg-final { cleanup-repo-files } }