OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/51107
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted21.C
1
// PR c++/46736
2
// { dg-options -std=c++0x }
3
4
struct U {
5
U();
6
U(U const&);
7
};
8
9
struct X {
10
U const u;
11
X();
12
X(X&&);
13
};
14
15
X::X(X&&)=default; // { dg-message "implicitly deleted" }
16
// { dg-error "does not have a move constructor" "" { target *-*-* } 15 }
17
18
X f() {
19
return X();
20
}