URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
|
|
struct A
|
struct A
|
{
|
{
|
~A();
|
~A();
|
};
|
};
|
|
|
/* If we don't create SFT's for the "empty" structure A, bad things
|
/* If we don't create SFT's for the "empty" structure A, bad things
|
will happen, and we will fail verification. */
|
will happen, and we will fail verification. */
|
struct B
|
struct B
|
{
|
{
|
int i;
|
int i;
|
A a;
|
A a;
|
|
|
void foo() {}
|
void foo() {}
|
};
|
};
|
|
|
void bar()
|
void bar()
|
{
|
{
|
B().foo();
|
B().foo();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.