public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Martin Jambor <mjambor@suse.cz>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [PATCH, testcase, committed] Exit with zero status from g++.dg/ipa/pr61160-3.C
Date: Tue, 22 Jul 2014 16:31:00 -0000	[thread overview]
Message-ID: <20140722163132.GA30804@virgil.suse> (raw)

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.

Thanks,

Martin

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

	PR ipa/61160
	* g++.dg/ipa/pr61160-3.C (main): Return zero.

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

             reply	other threads:[~2014-07-22 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 16:31 Martin Jambor [this message]
2014-07-24 13:11 ` Martin Jambor
2015-07-08 11:28 ` Martin Jambor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140722163132.GA30804@virgil.suse \
    --to=mjambor@suse.cz \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).