URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
struct
|
struct
|
Foo
|
Foo
|
{
|
{
|
public:
|
public:
|
typedef void* (*copier_fn)(void const*);
|
typedef void* (*copier_fn)(void const*);
|
void foo() const;
|
void foo() const;
|
void bar(char const*, void const*) const;
|
void bar(char const*, void const*) const;
|
private:
|
private:
|
struct
|
struct
|
Bar
|
Bar
|
{
|
{
|
char const* key;
|
char const* key;
|
void const* item;
|
void const* item;
|
};
|
};
|
};
|
};
|
|
|
void
|
void
|
Foo::foo() const
|
Foo::foo() const
|
{
|
{
|
Bar* cp = 0;
|
Bar* cp = 0;
|
copier_fn copyfn = 0;
|
copier_fn copyfn = 0;
|
|
|
bar(cp->key, cp->item);
|
bar(cp->key, cp->item);
|
bar(cp->key, (copyfn) ? (*copyfn)(cp) : 0);
|
bar(cp->key, (copyfn) ? (*copyfn)(cp) : 0);
|
bar(cp->key, (copyfn) ? (*copyfn)(0) : 0);
|
bar(cp->key, (copyfn) ? (*copyfn)(0) : 0);
|
|
|
bar(cp->key, (copyfn) ? (*copyfn)(0) : cp->item);
|
bar(cp->key, (copyfn) ? (*copyfn)(0) : cp->item);
|
bar(cp->key, (copyfn) ? (*copyfn)(cp) : cp->item);
|
bar(cp->key, (copyfn) ? (*copyfn)(cp) : cp->item);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.