aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/vt1.C
blob: 30379beb9c33fd4581a841eed414c7d7162bda71 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test whether vtable for S is not put into read-only section.
// { dg-do compile }
// { dg-options "-O2 -fpic -fno-rtti" }
// Origin: Jakub Jelinek <jakub@redhat.com>

struct S
{
  virtual void vm (void) {};
} x;

// { dg-final { scan-assembler-not "section\[^\n\r\]*_ZTV1S\[^\n\r\]*\"\[^w\"\n\r\]*\"" } }