Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/ntp1.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 // { dg-do compile } |
2 | |
3 // Copyright (C) 2001 Free Software Foundation, Inc. | |
4 // Contributed by Nathan Sidwell 26 Dec 2001 <nathan@codesourcery.com> | |
5 | |
6 // PR 35. We were default promoting template PARM_DECLs | |
7 | |
8 template <short B> class R {}; | |
9 | |
10 template <class T> class A | |
11 { | |
12 public: | |
13 template <short B> | |
14 void operator() (R<B> const &); | |
15 }; | |
16 | |
17 int main() { | |
18 A<int> a; | |
19 R<1> r; | |
20 | |
21 a (r); | |
22 | |
23 return 0; | |
24 } |