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 bar(void)16int bar(void) 17 { 18 return foo(decl); 19 } 20