URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-lto-do assemble }
|
// { dg-lto-do assemble }
|
struct Foo {
|
struct Foo {
|
static const int dummy;
|
static const int dummy;
|
|
|
int bit_field:1;
|
int bit_field:1;
|
int dummy2:1;
|
int dummy2:1;
|
int dummy3:1;
|
int dummy3:1;
|
};
|
};
|
|
|
struct Bar {
|
struct Bar {
|
Foo foo;
|
Foo foo;
|
};
|
};
|
|
|
int func(const Bar& b) {
|
int func(const Bar& b) {
|
return b.foo.bit_field;
|
return b.foo.bit_field;
|
}
|
}
|
|
|
struct Baz {
|
struct Baz {
|
Bar& operator*() {}
|
Bar& operator*() {}
|
};
|
};
|
|
|
void func1(Baz baz, int i, Bar bar) {
|
void func1(Baz baz, int i, Bar bar) {
|
i || func(bar);
|
i || func(bar);
|
*baz = bar;
|
*baz = bar;
|
}
|
}
|
|
|
void func2(Baz baz, Bar bar) {
|
void func2(Baz baz, Bar bar) {
|
func1(baz, 0, bar);
|
func1(baz, 0, bar);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.