Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
4757b071
Commit
4757b071
authored
Jun 30, 2011
by
Jason Merrill
Committed by
Jason Merrill
Jun 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/cpp0x/named.C: Test subobject of xvalue.
From-SVN: r175731
parent
97f309c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/cpp0x/named.C
+2
-0
No files found.
gcc/testsuite/ChangeLog
View file @
4757b071
2011-06-29 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/named.C: Test subobject of xvalue.
2011-06-30 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46787
...
...
gcc/testsuite/g++.dg/cpp0x/named.C
View file @
4757b071
...
...
@@ -13,6 +13,7 @@ struct T
S
&&
get
()
{
return
movel
(
s
);
}
operator
S
&&
()
{
return
movel
(
s
);
}
S
&&
s
;
S
s2
;
};
void
named
(
S
const
&
)
{}
...
...
@@ -33,6 +34,7 @@ void f(S && p)
unnamed
(
t
.
get
());
// function return
unnamed
(
t
);
// implicit conversion
unnamed
(
static_cast
<
S
&&>
(
s
));
// cast to rvalue
unnamed
(
static_cast
<
T
&&>
(
t
).
s2
);
// cast to rvalue
}
int
main
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment