asan: Fix missing FakeStack flag cleanup
[gcc.git] / libstdc++-v3 / testsuite / 23_containers / vector / bool / emplace_rvalue.cc
blob5dea2426d602ae583f3668e506d63322af1aced3
1 // { dg-do compile { target c++11 } }
3 #include <vector>
5 struct S
7 explicit operator bool() &&;
8 };
10 void
11 test_emplace_back()
13 S s;
14 std::vector<bool> v;
15 v.emplace_back(std::move(s));
18 void
19 test_emplace()
21 S s;
22 std::vector<bool> v;
23 v.emplace(v.begin(), std::move(s));