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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [destruct2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// PRMS Id: 4342
3
// Bug: g++ does not massage things enough to allow calling ~X().
4
 
5
struct X
6
{
7
    virtual ~X ();
8
};
9
 
10
struct Y : public X
11
{};
12
 
13
struct Z : public Y, public X
14
{};                             // { dg-warning "" }
15
 
16
void foo ()
17
{
18
    Z* f = new Z;
19
    delete f;                   // { dg-bogus "" }
20
}

powered by: WebSVN 2.1.0

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