blob: 538e2cb097a0db871b95fc1d1a0b8ac38aef32b1 [file] [log] [blame]
// Test that we don't need libsupc++ just for __cxa_pure_virtual.
// { dg-do link }
// { dg-require-weak }
// { dg-additional-options "-fno-rtti -nodefaultlibs -lc" }
// { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } }
// { dg-xfail-if "AIX weak" { powerpc-ibm-aix* } }
struct A
{
int i;
virtual void f() = 0;
A(): i(0) {}
};
struct B: A
{
virtual void f() {}
};
int main()
{
B b;
}