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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [new30.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
// PR c++/40975
2
 
3
struct data_type
4
{
5
    // constructor required to reproduce compiler bug
6
    data_type() {}
7
};
8
 
9
struct ptr_type
10
{
11
    // array new as default argument required to reproduce compiler bug
12
    ptr_type (data_type* ptr = new data_type[1]) { delete[] ptr; }
13
};
14
 
15
ptr_type obj;

powered by: WebSVN 2.1.0

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