Fix coding style and add a new test-case (PR lto/85405).
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr85405b_0.C
bloba692abb77156c449511416e44e7aa549d53eaa20
1 // { dg-lto-do link }
2 // { dg-lto-options {{-fPIC -shared -flto}} }
4 class VclReferenceBase { // { dg-lto-warning "7: type 'struct VclReferenceBase' violates the C\\+\\+ One Definition Rule" }
5   int mnRefCnt;
6   int mbDisposed : 3;
7   virtual ~VclReferenceBase();
8 };
9 class a;
10 class b {
11   a &e;
12   bool c();
14 class B {
15   VclReferenceBase d;
17 class a : B {};
18 bool b::c() { return false; }