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
SH: Use softfp for sh-elf
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
ref-qual6.C
blob
02e3f6e683eb1f87faa68e7dcde75129638f0796
1
// Binding an rvalue to && beats binding it to const& (13.3.3.2).
2
3
// { dg-require-effective-target c++11 }
4
5
struct A
6
{
7
int operator+(int) &&;
8
};
9
10
void operator+ (const A&, int);
11
12
int main()
13
{
14
return A() + 42;
15
}