aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lto/pr60567_0.C
blob: 966a3c3bc7421775613f7e37c02562e0326aef42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR lto/60567
// { dg-lto-do link }
// { dg-lto-options { { -flto -fno-use-linker-plugin } } }
// { dg-extra-ld-options "-r -nostdlib" }

#pragma implementation
struct S {};

#pragma interface
struct T
{
  virtual void foo (const S &) = 0;
};

struct U
{
  virtual void bar (const S &) = 0;
};

struct V : public T, public U
{
  virtual void bar (const S &) {}
};