[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr60567_0.C
blob966a3c3bc7421775613f7e37c02562e0326aef42
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" }
6 #pragma implementation
7 struct S {};
9 #pragma interface
10 struct T
12   virtual void foo (const S &) = 0;
15 struct U
17   virtual void bar (const S &) = 0;
20 struct V : public T, public U
22   virtual void bar (const S &) {}