URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [defaulted20.C] - Rev 701
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/46497
// { dg-options -std=c++0x }
struct A {
A(A&&) = default;
};
struct B {
const A a;
B(const B&) = default;
B(B&&) = default; // { dg-error "implicitly deleted|use of deleted" }
};
void g(B); // { dg-error "argument 1" }
B&& f();
int main()
{
g(f()); // { dg-error "deleted" }
}
Go to most recent revision | Compare with Previous | Blame | View Log