From patchwork Fri Oct 12 01:39:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 982814 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-487408-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="FzkYDYfv"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42WVrj5bNFz9s3C for ; Fri, 12 Oct 2018 12:40:04 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=Xf19hYWhQ7BrTTSCecUq+EaF/GAyV+7RCfhrChObEvHcL85eEHND+ wOGhpF2tpkSOLzOdoyZ/b/lQ0Ea9XLI0mSvAvUiHSqQBMOg1DDB5fWQueGC0ThKW UX31Dtjjn/0KnGexGZPmFaoTph7KT67WzPWDJSI1REJ4vouuv7e6wM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=lPEYZUHjaqkUvUglf+Yts2oMzUE=; b=FzkYDYfv6cMTPT0wNP8E 6HMUXqngsgeVC6YDLSYiQpbt2iKMiIyNrOc5m+RggOr3UTcNDKvGexfL9tX9b8mb vW7WglzuU2iCNjeEc2jCIRipH0TzU6KxoHT6ntJoasDXAlV7s4L6PZfQ4DA6gs7N sGF1IB5BDJgw6StXDmAZ5oI= Received: (qmail 72037 invoked by alias); 12 Oct 2018 01:39:57 -0000 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 Received: (qmail 72022 invoked by uid 89); 12 Oct 2018 01:39:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 12 Oct 2018 01:39:55 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CEC103001754 for ; Fri, 12 Oct 2018 01:39:53 +0000 (UTC) Received: from redhat.com (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 465D6116D8B; Fri, 12 Oct 2018 01:39:53 +0000 (UTC) Date: Thu, 11 Oct 2018 21:39:51 -0400 From: Marek Polacek To: GCC Patches , Jason Merrill , Jakub Jelinek Subject: C++ PATCH for decomp31.C test Message-ID: <20181012013951.GM19003@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Running make check-c++ RUNTESTFLAGS=dg.exp=decomp31.C will yield # of unsupported tests 3 because the test (as the only one in cpp1z/) uses "dg-do compile { target c++17 }" which doesn't work (yet?). This patch makes it use explicit dg-options as in other tests, so now we get # of expected passes 1 Tested on x86_64-linux, ok for trunk? 2018-10-11 Marek Polacek * g++.dg/cpp1z/decomp31.C: Use explicit dg-options. --- gcc/testsuite/g++.dg/cpp1z/decomp31.C +++ gcc/testsuite/g++.dg/cpp1z/decomp31.C @@ -1,5 +1,6 @@ // PR c++/81888 -// { dg-do compile { target c++17 } } +// { dg-do compile } +// { dg-options "-std=c++17" } struct S { bool s = true;