summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/lookup4.C
blob: 3fd447ceec81a49ca13a8386350d28ca007c094b (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
// { dg-do assemble  }

void h(int);

template <class T>
class i {};

struct B
{
  int i;
};

template <class T>
struct D : public B
{
  void f();
  void g() { h(i); }
};

template <class T>
void D<T>::f()
{
  h(i);
}