2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / vt1.C
blob1b087189f4038fb36d519222e7953241c4e8be13
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\]*\"" } }