Debian Codegraph @

gcc/testsuite/g++.dg/opt/vt1.C

raw
1 // Test whether vtable for S is not put into read-only section.
2 // { dg-do compile { target fpic } }
3 // { dg-options "-O2 -fpic -fno-rtti" }
4 // { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } }
5 // Origin: Jakub Jelinek <[email protected]>
6
7 struct S
8 {
9 virtual void vm (void) {};
10 } x;
11
12 // { dg-final { scan-assembler-not "section\[^\n\r\]*_ZTV1S\[^\n\r\]*\"\[^w\"\n\r\]*\"" } }