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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20080915_0.C] - Diff between revs 301 and 338

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);
}
}
 
 

powered by: WebSVN 2.1.0

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