From patchwork Thu Aug 25 18:51:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 111636 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 62707B70B9 for ; Fri, 26 Aug 2011 04:52:24 +1000 (EST) Received: (qmail 6473 invoked by alias); 25 Aug 2011 18:52:21 -0000 Received: (qmail 6460 invoked by uid 22791); 25 Aug 2011 18:52:20 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Aug 2011 18:51:59 +0000 Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [172.25.149.13]) by smtp-out.google.com with ESMTP id p7PIpvX0002720; Thu, 25 Aug 2011 11:51:57 -0700 Received: from topo.tor.corp.google.com (topo.tor.corp.google.com [172.29.41.2]) by hpaq13.eem.corp.google.com with ESMTP id p7PIpt5U013571; Thu, 25 Aug 2011 11:51:55 -0700 Received: by topo.tor.corp.google.com (Postfix, from userid 54752) id CB8C51DA1D2; Thu, 25 Aug 2011 14:51:51 -0400 (EDT) To: reply@codereview.appspotmail.com, crowl@google.com, gchare@google.com, gcc-patches@gcc.gnu.org Subject: [pph] Make x7rtti.cc executable (issue4970041) Message-Id: <20110825185153.CB8C51DA1D2@topo.tor.corp.google.com> Date: Thu, 25 Aug 2011 14:51:51 -0400 (EDT) From: dnovillo@google.com (Diego Novillo) X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org * g++.dg/pph/x7rtti.cc: Make it executable. --- This patch is available for review at http://codereview.appspot.com/4970041 diff --git a/gcc/testsuite/g++.dg/pph/x7rtti.cc b/gcc/testsuite/g++.dg/pph/x7rtti.cc index 297ebe2..0da2f97 100644 --- a/gcc/testsuite/g++.dg/pph/x7rtti.cc +++ b/gcc/testsuite/g++.dg/pph/x7rtti.cc @@ -1,3 +1,4 @@ +// { dg-do run } // { dg-xfail-if "BOGUS" { "*-*-*" } { "-fpph-map=pph.map" } } // { dg-bogus "x7rtti.cc:21:0: warning: .__STDC_IEC_559_COMPLEX__. redefined .enabled by default." "" { xfail *-*-* } 0 } // { dg-bogus "x7rtti.cc:21:0: warning: .__STDC_ISO_10646__. redefined .enabled by default." "" { xfail *-*-* } 0 } @@ -13,16 +14,20 @@ // { dg-bogus "x7rtti.cc:28:1: error: redefinition of .const char _ZTS15non_polymorphic ..." "" { xfail *-*-* } 0 } // { dg-bogus "x7rtti.cc:28:1: error: redefinition of .const char _ZTS11polymorphic ..." "" { xfail *-*-* } 0 } - -//FIXME We should make this a run test. - #include "x5rtti1.h" #include "x5rtti2.h" int main() { - return poly1() == poly2() && nonp1() == nonp2() - && hpol1() == hpol2() && hnpl1() == hnpl2() - && poly1() != nonp1() && hpol1() == hnpl1() - && poly2() != nonp2() && hpol2() == hnpl2(); + if (poly1() == poly2() + && nonp1() == nonp2() + && hpol1() == hpol2() + && hnpl1() == hnpl2() + && poly1() != nonp1() + && hpol1() == hnpl1() + && poly2() != nonp2() + && hpol2() == hnpl2()) + return 0; + else + return 1; }