repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix coding style and add a new test-case (PR lto/85405).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr85405b_0.C
blob
a692abb77156c449511416e44e7aa549d53eaa20
1
// { dg-lto-do link }
2
// { dg-lto-options {{-fPIC -shared -flto}} }
3
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();
13
};
14
class B {
15
VclReferenceBase d;
16
};
17
class a : B {};
18
bool b::c() { return false; }