OSDN Git Service

PR c++/51143 - Alias template allows class definition
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / move1.C
1 // { dg-options "-std=c++0x -pedantic-errors" }
2
3 #include <utility>
4
5 class A { };
6
7 static void g ( A && ) { }
8
9 template < class T > class B {
10 public:
11  void f ( ) {
12   A a;
13   g ( std :: move ( a ) );
14  }
15 };