OSDN Git Service

PR c++/50941
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / rv-deduce2.C
1 // PR c++/48313
2 // { dg-options -std=c++0x }
3
4 template<typename F>
5 void f(F&&) { }
6
7 void g() { }
8
9 template<typename T> void h() { }
10
11 int main()
12 {
13   f( g );       // OK
14   void (&p)() = h<int>;
15   f( p );       // OK
16   f( h<int> );  // ???
17 }
18