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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20080915_0.C] - Blame information for rev 717

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-lto-do assemble }
2
struct Foo {
3
 static const int dummy;
4
 
5
 int bit_field:1;
6
 int dummy2:1;
7
 int dummy3:1;
8
};
9
 
10
struct Bar {
11
 Foo foo;
12
};
13
 
14
int func(const Bar& b) {
15
 return b.foo.bit_field;
16
}
17
 
18
struct Baz {
19
 Bar& operator*() {}
20
};
21
 
22
void func1(Baz baz, int i, Bar bar) {
23
 i || func(bar);
24
 *baz = bar;
25
}
26
 
27
void func2(Baz baz, Bar bar) {
28
 func1(baz, 0, bar);
29
}

powered by: WebSVN 2.1.0

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