aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/inline2.C
blob: 0f5f78af11c8bc9e8b5557c73e493819e2d79ada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/21627

template<typename T>
struct TPL 
{
  TPL (){}
  ~TPL (){}
  void method () {}
};

template <> TPL<int>::TPL ();
template <> TPL<int>::~TPL ();
template <> void TPL<int>::method ();

void Foo ()
{
  TPL<int> i;
  i.method ();
}