OSDN Git Service

PR c++/53549
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / spec20.C
1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 31 Mar 2005 <nathan@codesourcery.com>
3
4 // Origin: Giovanni Bajo <giovannibajo@libero.it>
5 // Bug 19203: Failure to implement DR 214
6
7 template <class A>
8 void foo(const A& a);
9
10 template <class RET, class ARG1>
11 int foo(RET (&)(ARG1)); // this one
12
13
14 float decl(int);
15
16 int bar(void)
17 {
18   return foo(decl);
19 }