URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [implicit11.C] - Rev 693
Compare with Previous | Blame | View Log
// Test that we consider base dtors in determining whether
// a derived ctor is deleted even if the ctor is trivial.
// { dg-options -std=c++0x }
struct A
{
~A() = delete; // { dg-error "declared here" }
};
struct B: A { }; // { dg-error "deleted" }
extern B eb;
int main()
{
B* b1 = new B; // { dg-error "use of deleted function" "" { xfail *-*-* } }
B* b2 = new B(eb); // { dg-error "use of deleted function" }
}