blob: 6a4850f0d2ff7a685d62191da6a47a698b647375 [file] [log] [blame]
// Test whether vtable for S is not put into read-only section.
// { dg-do compile }
// { dg-skip-if "No -fpic" { mmix-*-* } { "*" } { "" } }
// { dg-options "-O2 -fpic -fno-rtti" }
// Origin: Jakub Jelinek <jakub@redhat.com>
struct S
{
virtual void vm (void) {};
} x;
// { dg-final { scan-assembler-not "section\[^\n\r\]*_ZTV1S\[^\n\r\]*\"\[^w\"\n\r\]*\"" } }