aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/typedef3.C
blob: 465e9a00e7a6cb91b54f1234106a7ca82da66cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Build don't link:
template<class T>
struct X{
  T v;
  X(){}
  virtual ~X(){}
  virtual inline T f(T x){return x;}
};

void f()
{
  typedef int H;
  X<H> y;
}