Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.dg / opt / vt1.C
blob6a4850f0d2ff7a685d62191da6a47a698b647375
1 // Test whether vtable for S is not put into read-only section.
2 // { dg-do compile }
3 // { dg-skip-if "No -fpic" { mmix-*-* } { "*" } { "" } }
4 // { dg-options "-O2 -fpic -fno-rtti" }
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\]*\"" } }