Remove an unneeded include that was added by mistake.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / rv-conv3.C
blob5f727fcc0d5e1527e29b535f947a1ad4ff00e5e1
1 // PR c++/90546
2 // { dg-do link { target c++11 } }
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);
13 int main() {
14   test(Bar{});