aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C
blob: e896ed32570385d09af7dc8ced65989fb44a773c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Build then link:
// Special g++ Options: -frepo

// Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
// excess errors test - 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();
}