summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20100724-1_0.C
blob: 084c07f0814d26d70f53acdd621e3e3aa3bb534b (plain)
1
2
3
4
5
6
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(); }