aboutsummaryrefslogtreecommitdiff
path: root/test/compiler/movable.cpp
blob: 04590b98fe9ae46cc6c379a78b4db342501f350d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <list>
#include <vector>
#include <string>

using namespace std;

struct S :
    public string
{
};

void test()
{
  list<S> l;
  l.push_back( S() );

  vector<S> v;
  v.push_back( S() );
}