URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// { dg-options "-O2 -foptimize-sibling-calls -fno-exceptions" }
|
// { dg-options "-O2 -foptimize-sibling-calls -fno-exceptions" }
|
|
|
struct X
|
struct X
|
{
|
{
|
const char *c() const { return b; };
|
const char *c() const { return b; };
|
char *b;
|
char *b;
|
};
|
};
|
extern "C" int f (const char *);
|
extern "C" int f (const char *);
|
struct A
|
struct A
|
{
|
{
|
X x;
|
X x;
|
void y();
|
void y();
|
};
|
};
|
void A::y()
|
void A::y()
|
{
|
{
|
const char *const a[] = { x.c() };
|
const char *const a[] = { x.c() };
|
f (a[0]);
|
f (a[0]);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.