From: No Author Date: Mon, 10 Jun 2002 21:44:43 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch X-Git-Tag: releases/gcc-3.1.1~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a9edfbc894d05328c14facd302e34a5d1d9343f;p=thirdparty%2Fgcc.git This commit was manufactured by cvs2svn to create branch 'gcc-3_1-branch'. From-SVN: r54460 --- diff --git a/gcc/testsuite/g++.dg/opt/vt1.C b/gcc/testsuite/g++.dg/opt/vt1.C new file mode 100644 index 000000000000..536a25276425 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/vt1.C @@ -0,0 +1,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 + +struct S +{ + virtual void vm (void) {}; +} x; + +// { dg-final { scan-assembler-not "section.*_ZTV1S.*\"\[^w\"\]*\"" } }