From patchwork Wed Oct 30 22:13:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 99853 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0ECCC3857835 for ; Wed, 30 Oct 2024 22:14:19 +0000 (GMT) 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 ESMTP id 57E85385783B for ; Wed, 30 Oct 2024 22:13:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 57E85385783B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 57E85385783B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730326426; cv=none; b=vL8YbQTJfZ4GhjQRnw7tbmuVjjaCnTcgfrWPfTNUl9lTxsW2d3WiuMV0dDPHkpnyfdyXxP9nOQh5CLOSmLmNdi4tw0InkhzDuiQLJiGnBjvIBuMrfyHGEWCsA53tqDXhnPdgH2CAH4kxXy5MeNCRy9SenwwpxogzgjYWl+T1iRg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730326426; c=relaxed/simple; bh=hnJQWeDbtWFreAtfD7YOMeHQ8vC0JQJ+CnIwvC/ENio=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FdVrfkX8ilx23GT/QNN9jnRhSTkYnu3qN1Vr80xymxK0VLjMoi9qXLzl9sSNoSezrnYn5nElHZcxFfHzIAhyZ6nHPAoF9zQLwJmO7+ju3t/5oJS1gxNcJ683Be416oHfzUj2o8ubtcLr/g8GYyDEawPk4H73cBIzNG7ufIJgLPo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1730326424; 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=xM1d0gBuVBM3BFZooOmLP27DdhMVkhiXRhbXCmLnvxs=; b=bkXNofbZxJ+wT2WxC27vqxUpWwUa+ZbTQQcrvX1rutkiu03wIskbHi4EO00YXAHzW+XG3S UGHqDPFvSMiFglnpM55xpDpM6llLuRU1XH+xA3LtjflPhOfr2ZkSKr1yFtWTSCa2h9FyHt ASbT8nDTzd8Fm+Yzh5lfGYQ8AL37jC8= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-536-6sTmqUlAOVGf2K6uh1lTVw-1; Wed, 30 Oct 2024 18:13:42 -0400 X-MC-Unique: 6sTmqUlAOVGf2K6uh1lTVw-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B6F4C19560AB; Wed, 30 Oct 2024 22:13:40 +0000 (UTC) Received: from localhost (unknown [10.42.28.115]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 2DB491956086; Wed, 30 Oct 2024 22:13:39 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix copy&paste comments in vector range tests Date: Wed, 30 Oct 2024 22:13:32 +0000 Message-ID: <20241030221338.1349405-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org These comments were copied from the std::vector tests, but the value_type is not bool in these ones. libstdc++-v3/ChangeLog: * testsuite/23_containers/vector/cons/from_range.cc: Fix copy & paste error in comment. * testsuite/23_containers/vector/modifiers/append_range.cc: Likewise. * testsuite/23_containers/vector/modifiers/assign/assign_range.cc: Likewise. * testsuite/23_containers/vector/modifiers/insert/insert_range.cc: Likewise. --- Pushed to trunk. libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc | 2 +- .../testsuite/23_containers/vector/modifiers/append_range.cc | 2 +- .../23_containers/vector/modifiers/assign/assign_range.cc | 2 +- .../23_containers/vector/modifiers/insert/insert_range.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc b/libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc index e91465f5a71..ed2e3ca6ba1 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/cons/from_range.cc @@ -80,7 +80,7 @@ test_ranges() do_test_a>(); do_test_a>(); - // Not lvalue-convertible to bool + // Not lvalue-convertible to int struct C { C(int v) : val(v) { } operator int() && { return val; } diff --git a/libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc b/libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc index 24a5c7d0e7c..5725cd2ad48 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/modifiers/append_range.cc @@ -69,7 +69,7 @@ test_ranges() do_test_a>(); do_test_a>(); - // Not lvalue-convertible to bool + // Not lvalue-convertible to int struct C { C(int v) : val(v) { } operator int() && { return val; } diff --git a/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc b/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc index 4e8d8af1614..db3b06cfbc0 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/assign_range.cc @@ -90,7 +90,7 @@ test_ranges() do_test_a>(); do_test_a>(); - // Not lvalue-convertible to bool + // Not lvalue-convertible to int struct C { C(int v) : val(v) { } operator int() && { return val; } diff --git a/libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc b/libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc index 30219f5da02..68218e94f28 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/insert_range.cc @@ -80,7 +80,7 @@ test_ranges() do_test_a>(); do_test_a>(); - // Not lvalue-convertible to bool + // Not lvalue-convertible to int struct C { C(int v) : val(v) { } operator int() && { return val; }