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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [implicit11.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test that we consider base dtors in determining whether
2
// a derived ctor is deleted even if the ctor is trivial.
3
// { dg-options -std=c++0x }
4
 
5
struct A
6
{
7
  ~A() = delete;                // { dg-error "declared here" }
8
};
9
 
10
struct B: A { };                // { dg-error "deleted" }
11
 
12
extern B eb;
13
int main()
14
{
15
  B* b1 = new B;                // { dg-error "use of deleted function" "" { xfail *-*-* } }
16
  B* b2 = new B(eb);            // { dg-error "use of deleted function" }
17
}

powered by: WebSVN 2.1.0

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