This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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.


2014-07-24  Martin Jambor  <>

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

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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]