]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 10 Jun 2002 21:44:43 +0000 (21:44 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 10 Jun 2002 21:44:43 +0000 (21:44 +0000)
'gcc-3_1-branch'.

From-SVN: r54460

gcc/testsuite/g++.dg/opt/vt1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/opt/vt1.C b/gcc/testsuite/g++.dg/opt/vt1.C
new file mode 100644 (file)
index 0000000..536a252
--- /dev/null
@@ -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 <jakub@redhat.com>
+
+struct S
+{
+  virtual void vm (void) {};
+} x;
+
+// { dg-final { scan-assembler-not "section.*_ZTV1S.*\"\[^w\"\]*\"" } }