blob: 72f56afcadcc7c55b0db7d1239086f6761096696 [file] [log] [blame]
// PR lto/53808
// Devirtualization should not produce an external ref to ~bar.
// { dg-options "-O2" }
// { dg-final { scan-assembler-not "_ZN3barD0Ev" } }
struct foo {
virtual ~foo();
};
struct bar : public foo {
virtual void zed();
};
void f() {
foo *x(new bar);
delete x;
}