OSDN Git Service

2012-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / auto15.C
1 // { dg-options "-std=c++0x" }
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 }