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