From patchwork Thu Sep 7 07:11:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 137619 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp2788428vqo; Thu, 7 Sep 2023 00:16:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlHaN96bj0uowdySRdNRjI8VWm32zLLQ8NNBli9DMXqsPQHoVxyE6K+3JzXhuBFBXNVeEw X-Received: by 2002:a17:907:7250:b0:9a5:794f:f3c5 with SMTP id ds16-20020a170907725000b009a5794ff3c5mr2233704ejc.6.1694071015554; Thu, 07 Sep 2023 00:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694071015; cv=none; d=google.com; s=arc-20160816; b=FzXA6+SMWX3ziJUgbJOCDk3LyehixL+3Xs29IJBNd9u/nDicX9lbAIF+iV64RdN7EP CJGYXoftq3wpnamkZVt0RCEXCORXlua2T93dtAJ7llOP3H4KIQbxzR0Nf8GEoS/Mz5oC KgO7fPQWJ823YkXp8tl4ttI056wQny4YZdoohQDSlOmDSjDeShzylbGdBXK6+vXQlLVa HdRsB+ONn0OF4jD730RT8MBDwqnV8/c4+QTNy31samG7VHLO7WGUiokxv3QRZzzxvOQb yMZA8blqChdbumWp79vyq/f9lsyIxuRBopp44ugpd1KJRviL1zuYA5cWuiEOs5QcRfWv 290Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=QBFjnJ0dtyg/XtxJGFMKKhvFP20y13msByb71P9fVtI=; fh=sJ+2/4g29YdyXkoRrFZSpsL2zxijepB7X/1rB0LDDh8=; b=bTdKJh0PMmk+PQFr3Hb9FRPFi+SEhP470XbrqD1Y0xU5BTss4rpOk3kgmtWxzB+vbG wM/E5r5jc28SuXwNmqjQ2uwLA8m+hLm53+34fyT+tgtRPDoX/eqW30yQbw9cm1k0W38k 6gz9fYORYQrp/YF+iwhKdwt9+cCrFw+k/DEP+qxmqLeYoFl/p8q7ErzK1ynoTusO6AV3 Mtj1xKrUkOXHiIDUCzNBdyYlQszKsE902/ehJhfcG2sUAa2FE49mI8xFi7anBallfNb8 dFh/Nmy7vs5ZvRPAw4OIisI0DsEByHps4e30R/4C2fmQ+Hq95sa9WAm95lFM0SzlIPEJ a5cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NaqtafFO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id jx20-20020a170906ca5400b0098e422d6759si10312662ejb.554.2023.09.07.00.16.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 00:16:55 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NaqtafFO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 99F4B382890F for ; Thu, 7 Sep 2023 07:13:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99F4B382890F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694070813; bh=QBFjnJ0dtyg/XtxJGFMKKhvFP20y13msByb71P9fVtI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=NaqtafFOqm7xWIxhGOg/rfjQlBf0jjvLMOLpby5ok8Dn/dY6d/rD8yFO4GHnNfqRR gxaqgJz8Cacyx7oU7SYe/x4I6Q3Ob2GOJzHuztdKzrT8SCKrrFuMBzw7AsEXABQAzj F1+C2KDav29GnYMSb7WPVyhDhZBnffA3e88ebUHI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 686E8385C6E5 for ; Thu, 7 Sep 2023 07:11:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 686E8385C6E5 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-178-B5vkSb3fM2mKmhH9Emvn0g-1; Thu, 07 Sep 2023 03:11:56 -0400 X-MC-Unique: B5vkSb3fM2mKmhH9Emvn0g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6091B181B541; Thu, 7 Sep 2023 07:11:56 +0000 (UTC) Received: from localhost (unknown [10.42.28.200]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2505920BAE38; Thu, 7 Sep 2023 07:11:56 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix missing/misplaced { dg-options "-std=gnu++20" } in tests Date: Thu, 7 Sep 2023 08:11:51 +0100 Message-ID: <20230907071155.866923-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, URIBL_BLACK autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776362209484499411 X-GMAIL-MSGID: 1776362209484499411 Tested x86_64-linux. Pushed to trunk. -- >8 -- These tests do not run by default, because the c++20 effective target selector isn't matched. libstdc++-v3/ChangeLog: * testsuite/23_containers/unordered_map/operations/1.cc: Add dg-options for C++20 mode. * testsuite/23_containers/unordered_multimap/operations/1.cc: Likewise. * testsuite/23_containers/unordered_multiset/operations/1.cc: Likewise. * testsuite/23_containers/unordered_set/operations/1.cc: Likewise. * testsuite/std/time/parse.cc: Move dg-options before dg-do. --- .../testsuite/23_containers/unordered_map/operations/1.cc | 1 + .../testsuite/23_containers/unordered_multimap/operations/1.cc | 1 + .../testsuite/23_containers/unordered_multiset/operations/1.cc | 1 + .../testsuite/23_containers/unordered_set/operations/1.cc | 1 + libstdc++-v3/testsuite/std/time/parse.cc | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc index cfeca606c55..835f845621b 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_map/operations/1.cc @@ -15,6 +15,7 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc b/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc index 7e3867f345b..988a66695ef 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_multimap/operations/1.cc @@ -15,6 +15,7 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc b/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc index 7db4d129c52..91b0f87cab8 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_multiset/operations/1.cc @@ -15,6 +15,7 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc index b2f13990b56..dea21df7bcb 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_set/operations/1.cc @@ -15,6 +15,7 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } #include diff --git a/libstdc++-v3/testsuite/std/time/parse.cc b/libstdc++-v3/testsuite/std/time/parse.cc index 86222d59596..0ef56cf1cfa 100644 --- a/libstdc++-v3/testsuite/std/time/parse.cc +++ b/libstdc++-v3/testsuite/std/time/parse.cc @@ -1,5 +1,5 @@ -// { dg-do run { target c++20 } } // { dg-options "-std=gnu++20" } +// { dg-do run { target c++20 } } #include #include