From patchwork Wed May 11 22:37:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 95219 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 766191007D5 for ; Thu, 12 May 2011 10:24:51 +1000 (EST) Received: (qmail 15057 invoked by alias); 11 May 2011 22:38:11 -0000 Received: (qmail 15043 invoked by uid 22791); 11 May 2011 22:38:10 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-ew0-f47.google.com (HELO mail-ew0-f47.google.com) (209.85.215.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 May 2011 22:37:56 +0000 Received: by ewy5 with SMTP id 5so317264ewy.20 for ; Wed, 11 May 2011 15:37:54 -0700 (PDT) Received: by 10.14.9.214 with SMTP id 62mr1170798eet.208.1305153474448; Wed, 11 May 2011 15:37:54 -0700 (PDT) Received: from pb-d-128-141-128-141.cern.ch (pb-d-128-141-128-141.cern.ch [128.141.128.141]) by mx.google.com with ESMTPS id y3sm257156eeh.6.2011.05.11.15.37.53 (version=SSLv3 cipher=OTHER); Wed, 11 May 2011 15:37:53 -0700 (PDT) Message-ID: <4DCB0FC0.2060507@oracle.com> Date: Thu, 12 May 2011 00:37:52 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; it; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Gcc Patch List CC: libstdc++ Subject: [v3] Tweak to testcases 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 Hi, I committed this small tweak to two recent testcases of mine. Paolo. ////////////// 2011-05-11 Paolo Carlini * testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc: Use dg-require-cmath. * testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc: Likewise. Index: testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc =================================================================== --- testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc (revision 173683) +++ testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc (working copy) @@ -1,5 +1,6 @@ -// { dg-options "-std=gnu++0x" } // { dg-do compile } +// { dg-options "-std=gnu++0x" } +// { dg-require-cmath "" } // Copyright (C) 2011 Free Software Foundation, Inc. // @@ -22,8 +23,6 @@ // libstdc++/48933 -#ifdef _GLIBCXX_USE_C99_MATH_TR1 - struct Foo { }; template Foo std::atan2(Foo, Foo); // { dg-error "not match" } @@ -61,5 +60,3 @@ template Foo std::scalbn(Foo, int); // { dg-error "not match" } template Foo std::tgamma(Foo); // { dg-error "not match" } template Foo std::trunc(Foo); // { dg-error "not match" } - -#endif Index: testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc =================================================================== --- testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc (revision 173683) +++ testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc (working copy) @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-require-cmath "" } // Copyright (C) 2011 Free Software Foundation, Inc. // @@ -23,8 +24,6 @@ // libstdc++/48933 -#ifdef _GLIBCXX_USE_C99_MATH_TR1 - struct Foo { }; template Foo std::tr1::atan2(Foo, Foo); // { dg-error "not match" } @@ -62,5 +61,3 @@ template Foo std::tr1::scalbn(Foo, int); // { dg-error "not match" } template Foo std::tr1::tgamma(Foo); // { dg-error "not match" } template Foo std::tr1::trunc(Foo); // { dg-error "not match" } - -#endif