From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 355643856973 for ; Thu, 7 Sep 2023 07:12:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 355643856973 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694070719; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QBFjnJ0dtyg/XtxJGFMKKhvFP20y13msByb71P9fVtI=; b=K/Xrbn/2X1cY2rzVmXIAjfaBmTdJtgcy1997I3jj0a7ixZKofdv0ZbVw72N3iU/1pANV/O KBnfsZQyyxcCaG/ldY+sIoRy5W4JxWY8vCDKwY8GCOGOkH976NQ3Jdi5t0UucCfl+O8ZCi kW965ZYmp17HR+XfvIlNThRu+l7CdRQ= 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) From: Jonathan Wakely 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 Content-Type: text/plain Content-Transfer-Encoding: 8bit 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=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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 -- 2.41.0