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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr60567_0.C
blob
966a3c3bc7421775613f7e37c02562e0326aef42
1
// PR lto/60567
2
// { dg-lto-do link }
3
// { dg-lto-options { { -flto -fno-use-linker-plugin } } }
4
// { dg-extra-ld-options "-r -nostdlib" }
5
6
#pragma implementation
7
struct S {};
8
9
#pragma interface
10
struct T
11
{
12
virtual void foo (const S &) = 0;
13
};
14
15
struct U
16
{
17
virtual void bar (const S &) = 0;
18
};
19
20
struct V : public T, public U
21
{
22
virtual void bar (const S &) {}
23
};