1 // { dg-do link } 2 // Origin: Mark Mitchell <mark@codesourcery.com> 3 4 template <class T> 5 void f (T&) ; 6 7 template <> f(void (&)())8 void f (void (&)()) 9 { 10 } 11 g()12 void g () 13 { 14 } 15 h()16 void h () 17 { 18 } 19 20 bool b; 21 main()22 int main () 23 { 24 f (b ? g : h); 25 } 26 27