From patchwork Fri Jan 21 11:32:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 79832 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 451ABB708B for ; Fri, 21 Jan 2011 22:33:04 +1100 (EST) Received: (qmail 24968 invoked by alias); 21 Jan 2011 11:33:02 -0000 Received: (qmail 24951 invoked by uid 22791); 21 Jan 2011 11:33:01 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Jan 2011 11:32:46 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 52CB3695 for ; Fri, 21 Jan 2011 12:32:43 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ABbuJnOdYom5 for ; Fri, 21 Jan 2011 12:32:39 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 2A9D1694 for ; Fri, 21 Jan 2011 12:32:39 +0100 (CET) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p0LBWc0v006496; Fri, 21 Jan 2011 12:32:38 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: [testsuite, c++] Use signed char in g++.dg/template/char1.C Date: Fri, 21 Jan 2011 12:32:38 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (usg-unix-v) MIME-Version: 1.0 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 The g++.dg/template/char1.C test FAILs on mips-sgi-irix6.5 on mainline: FAIL: g++.dg/template/char1.C (test for warnings, line 4) This happens because the test assumes that char is signed, but on IRIX, it is unsigned. Fixed thus, tested with the appropriate runtest invocations on mips-sgi-irix6.5 and i386-pc-solaris2.11. Ok for mainline, though I suppose this is obvious. Thanks. Rainer 2011-01-21 Rainer Orth * g++.dg/template/char1.C: Use signed char. Index: gcc/testsuite/g++.dg/template/char1.C =================================================================== --- gcc/testsuite/g++.dg/template/char1.C (revision 169081) +++ gcc/testsuite/g++.dg/template/char1.C (working copy) @@ -1,4 +1,4 @@ template class String {}; -String s; // { dg-warning "overflow" } +String s; // { dg-warning "overflow" }