diff mbox

[testcase,committed] Exit with zero status from g++.dg/ipa/pr61160-3.C

Message ID 20140724130822.GC2772@virgil.suse
State New
Headers show

Commit Message

Martin Jambor July 24, 2014, 1:08 p.m. UTC
On Tue, Jul 22, 2014 at 06:31:32PM +0200, Martin Jambor wrote:
> Hi,
> 
> in order to avoid spurious testsuite failures, I've checked in the
> following obvious patch so that the testcase always returns zero.  I
> have verified it still properly tests for non-existence of the bug.

...and here goes the same thing for g++.dg/ipa/pr61160-2.C which I
forgot is also a run time test.  I will commit these changes to both
testcase on the 4.9 branch shortly.  Hopefully that will be really it.

Martin

2014-07-24  Martin Jambor  <mjambor@suse.cz>

       PR ipa/61160
       * g++.dg/ipa/pr61160-2.C (main): Always return zero.
diff mbox

Patch

Index: g++.dg/ipa/pr61160-2.C
===================================================================
--- g++.dg/ipa/pr61160-2.C      (revision 212986)
+++ g++.dg/ipa/pr61160-2.C      (working copy)
@@ -39,5 +39,6 @@  void *test (MMixin & anExample)
 int main ()
 {
   CExample c;
-  return (test (c) != &c);
+  test (c);
+  return 0;
 }