OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [implicit1.C] - Rev 693

Compare with Previous | Blame | View Log

// Test for implicitly deleted destructors.
// { dg-options "-std=c++0x" }
// { dg-prune-output "default definition would be ill-formed" }
// { dg-prune-output "within this context" }

class C
{
  void operator delete (void *); // { dg-error "private" }
public:
  virtual ~C();                 // { dg-error "overriding" }
};

struct D: C { };                // { dg-error "deleted" }
D d;                            // { dg-error "deleted" }

struct E
{
  ~E() = delete;                // { dg-error "declared here" }
};

struct F
{
  virtual ~F();                 // { dg-error "overriding" }
};

struct G: E, F { };             // { dg-error "deleted" }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.