Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-plugin/pr12696-1.cc
2023-03-06 14:48:14 +01:00

7 lines
290 B
C++

/* { dg-lto-do link } */
/* { dg-lto-options {{-ftoplevel-reorder -flto -flto-partition=none} {-ftoplevel-reorder -flto -flto-partition=1to1}} } */
/* { dg-extra-ld-options {-r -nostdlib} } */
struct Foo { virtual ~Foo(); };
struct Bar:public Foo { Bar() { } };
void Func() { new Bar(); }