repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
asan: Fix missing FakeStack flag cleanup
[gcc.git]
/
libstdc++-v3
/
testsuite
/
23_containers
/
vector
/
bool
/
emplace_rvalue.cc
blob
5dea2426d602ae583f3668e506d63322af1aced3
1
// { dg-do compile { target c++11 } }
2
3
#include <vector>
4
5
struct
S
6
{
7
explicit operator
bool
() &&;
8
};
9
10
void
11
test_emplace_back
()
12
{
13
S s
;
14
std
::
vector
<
bool
>
v
;
15
v
.
emplace_back
(
std
::
move
(
s
));
16
}
17
18
void
19
test_emplace
()
20
{
21
S s
;
22
std
::
vector
<
bool
>
v
;
23
v
.
emplace
(
v
.
begin
(),
std
::
move
(
s
));
24
}