Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/warn/inline2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/21627 |
2 | |
3 template<typename T> | |
4 struct TPL | |
5 { | |
6 TPL (){} | |
7 ~TPL (){} | |
8 void method () {} | |
9 }; | |
10 | |
11 template <> TPL<int>::TPL (); | |
12 template <> TPL<int>::~TPL (); | |
13 template <> void TPL<int>::method (); | |
14 | |
15 void Foo () | |
16 { | |
17 TPL<int> i; | |
18 i.method (); | |
19 } | |
20 |