Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / vt1.C
bloba15f77631a039bfb8ed68ad792f029250aa6ea2e
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 <jakub@redhat.com>
7 struct S
9   virtual void vm (void) {};
10 } x;
12 // { dg-final { scan-assembler-not "section\[^\n\r\]*_ZTV1S\[^\n\r\]*\"\[^w\"\n\r\]*\"" } }