[testsuite] Require lto for g++.dg/ipa/pr46984.C

Message ID yddei8kzino.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Jan. 10, 2011, 7:02 p.m.
The new testcase g++.dg/ipa/pr46984.C is failing on alpha-dec-osf5.1b:

FAIL: g++.dg/ipa/pr46984.C (test for excess errors)
WARNING: g++.dg/ipa/pr46984.C compilation failed to produce executable

Excess errors:
cc1plus: error: LTO support has not been enabled in this configuration

Fixed by the following patch, tested with the appropriate runtest
invocation, installed as obvious.


2011-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* g++.dg/ipa/pr46984.C: Add dg-require-effective-target lto.


Index: g++.dg/ipa/pr46984.C
--- g++.dg/ipa/pr46984.C        (revision 168635)
+++ g++.dg/ipa/pr46984.C        (working copy)
@@ -1,5 +1,6 @@ 
 // { dg-options "-O -fipa-cp -fno-early-inlining -flto" }
 // { dg-do run }
+// { dg-require-effective-target lto }
 extern "C" void abort ();