repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted39.C
blob
a4963c4d13215cdc0231ca424b7be464f56594c2
1
// DR 1402
2
// { dg-do compile { target c++11 } }
3
4
template <class T> T&& move(T& t);
5
6
struct A
7
{
8
A(const A&);
9
};
10
11
struct B
12
{
13
B(B&&);
14
};
15
16
struct C
17
{
18
A a;
19
B b;
20
};
21
22
extern C c1;
23
C c2(move(c1));