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
Reset branch to trunk.
[official-gcc.git]
/
trunk
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
cast-bug.C
blob
211f88b2b19409139bc8b286592a8e2d4198eba1
1
// { dg-options "--std=c++0x" }
2
struct S
3
{
4
S();
5
S(S &&);
6
private:
7
S(S &);
8
};
9
10
S f()
11
{
12
S s;
13
return static_cast<S&&>(s);
14
}