diff options
Diffstat (limited to 'ld/testsuite/ld-plugin/pr12696-1.cc')
-rw-r--r-- | ld/testsuite/ld-plugin/pr12696-1.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr12696-1.cc b/ld/testsuite/ld-plugin/pr12696-1.cc new file mode 100644 index 0000000000..084c07f081 --- /dev/null +++ b/ld/testsuite/ld-plugin/pr12696-1.cc @@ -0,0 +1,7 @@ +/* { 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(); } |