Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/lto/20080915_0.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
rev | line source |
---|---|
111 | 1 // { 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 } |