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
/
move-return2.C
blob
681e9ecaca10cd318f6e21d409727dca8c46b9ba
1
// PR c++/87150
2
// { dg-do compile { target c++11 } }
3
4
struct S1 { S1(S1 &&); };
5
struct S2 : S1 {};
6
7
S1
8
f (S2 s)
9
{
10
return s; // { dg-error "use of deleted function" }
11
}