Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/lto/20080915_0.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // { dg-lto-do assemble } | 1 // { dg-lto-do assemble } |
2 | |
2 struct Foo { | 3 struct Foo { |
3 static const int dummy; | 4 static const int dummy; |
4 | 5 |
5 int bit_field:1; | 6 int bit_field:1; |
6 int dummy2:1; | 7 int dummy2:1; |
14 int func(const Bar& b) { | 15 int func(const Bar& b) { |
15 return b.foo.bit_field; | 16 return b.foo.bit_field; |
16 } | 17 } |
17 | 18 |
18 struct Baz { | 19 struct Baz { |
19 Bar& operator*() {} | 20 Bar& operator*() { static Bar a; return a; } |
20 }; | 21 }; |
21 | 22 |
22 void func1(Baz baz, int i, Bar bar) { | 23 void func1(Baz baz, int i, Bar bar) { |
23 i || func(bar); | 24 i || func(bar); |
24 *baz = bar; | 25 *baz = bar; |