Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/lto/pr85405_0.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // { dg-lto-do link } | |
2 // { dg-require-effective-target shared } | |
3 // { dg-require-effective-target fpic } | |
4 // { dg-lto-options {{-fPIC -shared -flto}} } | |
5 | |
6 class VclReferenceBase { // { dg-lto-warning "7: type 'struct VclReferenceBase' violates the C\\+\\+ One Definition Rule" } | |
7 int mnRefCnt; | |
8 bool mbDisposed : 1; | |
9 virtual ~VclReferenceBase(); | |
10 }; | |
11 class a; | |
12 class b { | |
13 a &e; | |
14 bool c(); | |
15 }; | |
16 class B { | |
17 VclReferenceBase d; | |
18 }; | |
19 class a : B {}; | |
20 bool b::c() { return false; } |