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 7template <class A> 8void foo(const A& a); 9 10template <class RET, class ARG1> 11int foo(RET (&)(ARG1)); // this one 12 13 14float decl(int); 15 16int bar(void) 17{ 18 return foo(decl); 19} 20