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
Remove an unneeded include that was added by mistake.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-conv3.C
blob
5f727fcc0d5e1527e29b535f947a1ad4ff00e5e1
1
// PR c++/90546
2
// { dg-do link { target c++11 } }
3
4
struct Foo { };
5
void test(const Foo&) {}
6
Foo f;
7
struct Bar {
8
template <class T> operator T&&();
9
};
10
template<> Bar::operator const Foo&&() {
11
return static_cast<Foo&&>(f);
12
}
13
int main() {
14
test(Bar{});
15
}