summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/move1.C
blob: 12e363a8cabef752e983f3fbfc7b28eb12d61040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options "-std=c++0x -pedantic-errors" }

#include <utility>

class A { };

static void g ( A && ) { }

template < class T > class B {
public:
 void f ( ) {
  A a;
  g ( std :: move ( a ) );
 }
};