OSDN Git Service

PR c++/9335
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / ntp1.C
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 }