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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test for implicitly deleted destructors.
2
// { dg-options "-std=c++0x" }
3
// { dg-prune-output "default definition would be ill-formed" }
4
// { dg-prune-output "within this context" }
5
 
6
class C
7
{
8
  void operator delete (void *); // { dg-error "private" }
9
public:
10
  virtual ~C();                 // { dg-error "overriding" }
11
};
12
 
13
struct D: C { };                // { dg-error "deleted" }
14
D d;                            // { dg-error "deleted" }
15
 
16
struct E
17
{
18
  ~E() = delete;                // { dg-error "declared here" }
19
};
20
 
21
struct F
22
{
23
  virtual ~F();                 // { dg-error "overriding" }
24
};
25
 
26
struct G: E, F { };             // { dg-error "deleted" }

powered by: WebSVN 2.1.0

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