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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [save1.C] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/8748
2
// We were wrapping the ARRAY_REF in a SAVE_EXPR, causing us to try to make a bitwise
3
// copy of b[0].
4
 
5
struct A
6
{
7
    int i;
8
};
9
 
10
struct B : A
11
{
12
    virtual ~B();
13
};
14
 
15
struct C
16
{
17
    B b[1];
18
};
19
 
20
void foo() { C().b[0].i; }

powered by: WebSVN 2.1.0

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