mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
8 lines
290 B
C++
8 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(); }
|