gcc/testsuite/g++.dg/template/spec20.C
raw| 1 | // Copyright (C) 2005 Free Software Foundation, Inc. |
| 2 | // Contributed by Nathan Sidwell 31 Mar 2005 <[email protected]> |
| 3 | |
| 4 | // Origin: Giovanni Bajo <[email protected]> |
| 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 | } |