Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / instantiate6.C
bloba1223fc5d8581a9c8a2ffdff2933bdeb0a7c0840
1 // { dg-do link }
2 // { dg-options "-frepo" }
3 // { dg-require-host-local "" }
4 // Build then link:
6 // Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
8 template <class T>
9 class foo{
10 public:
11   void g();
12   void h();
15 template <class T>
16 void foo<T>::g() {
17   h();
20 template <class T>
21 void foo<T>::h() {
24 int main() {
25   foo<int> f;
26   f.g();
29 // { dg-final { cleanup-repo-files } }