Debian Codegraph @

gcc/testsuite/g++.dg/lto/pr60567_0.C

raw
1 // PR lto/60567
2 // { dg-lto-do link }
3 // { dg-lto-options { { -flto -fno-use-linker-plugin } } }
4 // { dg-extra-ld-options "-r" }
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 };