// Test whether vtable for S is not put into read-only section. // { dg-do compile } // { dg-options "-O2 -fpic -fno-rtti" } // Origin: Jakub Jelinek struct S { virtual void vm (void) {}; } x; // { dg-final { scan-assembler-not "section\[^\n\r\]*_ZTV1S\[^\n\r\]*\"\[^w\"\n\r\]*\"" } }