summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp70.C
blob: 8873a3954f85e596395d8cad11330b38bc67dd00 (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  }

template <class T>
class X {
public:
  T x;
};

class Y {
public:
  template <class T> static void f(X<T>& a) {}

  void g(void);
};

void
Y::g(void)
{
  X<int> a;

  f(a);
}