[testsuite] Require lto support in g++.dg/torture/pr48954.C

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Jun 14 13:59:00 GMT 2011


The new g++.dg/torture/pr48954.C testcase FAILs on alpha-dec-osf5.1b:

FAIL: g++.dg/torture/pr48954.C  -O0  (test for excess errors)
Excess errors:
cc1plus: error: LTO support has not been enabled in this configuration

The following test fixes this, tested with the appropriate runtest
invocation, installed on mainline.

	Rainer


2011-06-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* g++.dg/torture/pr48954.C: Use dg-require-effective-target lto.

Index: gcc/testsuite/g++.dg/torture/pr48954.C
===================================================================
--- gcc/testsuite/g++.dg/torture/pr48954.C	(revision 175018)
+++ gcc/testsuite/g++.dg/torture/pr48954.C	(working copy)
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -flto -fno-early-inlining -fkeep-inline-functions" } */
+/* { dg-require-effective-target lto } */
+
 struct A
 {
   virtual void foo () = 0;


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University



More information about the Gcc-patches mailing list