From patchwork Wed Aug 17 20:00:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 660252 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sF0Tl2fVHz9t16 for ; Thu, 18 Aug 2016 06:00:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=skDsTxPK; dkim-atps=neutral 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=h7SdmxeR21q7Nkat6pPtSrgIJF7TtfmFFazOCcHaEPCC+yDBemvAW GNBJoKtyNhnDWEoALEVPqxHVwcRsh/AojqGDm6M7gY3NqgPESFSYFpd/AI1kTOqq bxA/8PoIbQMOSHpLJJ7sooSKf6d7S7+TIiDEhcvtEmyYcOK2e4zQrU= 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=s8ugg4TGmwj0B02HgV+3yWo763A=; b=skDsTxPKZ6ZfE/dS3IZp 0fm8yBTJZNqAa2OhBNUC62EanrENRYg2ndYxuFQ6ITAhox9E0XvYAVwA+sM0jTsw WHHXV7GnfKj00uy+A1WzHurqqEH3IQzAM/JQpjhqSlpFNg20e6NKPaTcZME8RLgz WyxRndkRA80DxPtfwj7nkOA= Received: (qmail 16683 invoked by alias); 17 Aug 2016 20:00:49 -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 16666 invoked by uid 89); 17 Aug 2016 20:00:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1346, 20112016, 2011-2016, opportunity X-Spam-User: qpsmtpd, 2 recipients 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; Wed, 17 Aug 2016 20:00:38 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C9C6EC04D280; Wed, 17 Aug 2016 20:00:36 +0000 (UTC) Received: from localhost (ovpn-116-76.ams2.redhat.com [10.36.116.76]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7HK0aGb015726; Wed, 17 Aug 2016 16:00:36 -0400 Date: Wed, 17 Aug 2016 21:00:35 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] Fix invalid dg-do directive Message-ID: <20160817200035.GA11123@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.6.2 (2016-07-01) This dg-do compile was being ignored due to a missing space, so we were running a test that was meant to be compile-only. I've also taken the opportunity to make it use an effective target of c++11. * testsuite/20_util/reference_wrapper/invoke-2.cc: Fix invalid dg-do directive and use effective target instead of dg-options. Tested x86_64-linux, committed to trunk. commit 73d3f1bbdd8f1235fddaf5b374cb3a2fd5662e40 Author: redi Date: Wed Aug 17 19:58:44 2016 +0000 Fix invalid dg-do directive * testsuite/20_util/reference_wrapper/invoke-2.cc: Fix invalid dg-do directive and use effective target instead of dg-options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239548 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke-2.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke-2.cc index 89b81ac..85803ba 100644 --- a/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke-2.cc +++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke-2.cc @@ -1,5 +1,4 @@ -// { dg-options "-std=gnu++11" } -// { dg-do compile} +// { dg-do compile { target c++11 } } // Copyright (C) 2011-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free