1 2 3 4 5 6 7 8 9 10 11 12 13
// { dg-options "-std=c++0x" } template< typename Fn > struct function; template< typename Result, typename ... ArgTypes > struct function< auto (ArgTypes...)->Result > { }; int main() { function< auto(double)->int > y; return 0; }