Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / opt / vt1.C
blobba871fba2d84212272ae2bc2afe24cf03d770e8c
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 "requires unsupported run-time relocation" { spu-*-* } { "*" } { "" } }
5 // { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } { "*" } { "" } }
6 // Origin: Jakub Jelinek <jakub@redhat.com>
8 struct S
10   virtual void vm (void) {};
11 } x;
13 // { dg-final { scan-assembler-not "section\[^\n\r\]*_ZTV1S\[^\n\r\]*\"\[^w\"\n\r\]*\"" } }