From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1888) id 2C8613857004; Mon, 12 Sep 2022 19:21:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C8613857004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663010500; bh=PBy2faJ6/S0NvK3Xxpdc5vq+jaZKYpDXL/RZa2RXuZo=; h=From:To:Subject:Date:From; b=HRTweEeLQePD/KnNv9z9bVw+0Isn8GOGdh6Wy5su40jX+uXrTo1RnRK0vCcNwMH9Q 2MCTc7KSGDhXkLjBjrqBEvpVK7/30W+clOzBnIPyU3VCMeBqVAQl686etKP4zbuDb5 BPxlwAY9esOQ7oYQbKS8nnECu6XtT/k1PmgCbgQ4= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Patrick Palka To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-8757] libstdc++: Add already-accepted testcase [PR106320] X-Act-Checkin: gcc X-Git-Author: Patrick Palka X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: ad84a8981f7481b83715aa812d45d24beafb37d0 X-Git-Newrev: f323610375f4f87098f98b501ab01d033c930558 Message-Id: <20220912192140.2C8613857004@sourceware.org> Date: Mon, 12 Sep 2022 19:21:40 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f323610375f4f87098f98b501ab01d033c930558 commit r12-8757-gf323610375f4f87098f98b501ab01d033c930558 Author: Patrick Palka Date: Mon Sep 12 15:05:04 2022 -0400 libstdc++: Add already-accepted testcase [PR106320] Although PR106320 affected only the 10 and 11 branches, and the testcase from there is already correctly accepted on trunk and the 12 branch, we still should add the testcase to trunk/12 too for inter-branch consistency. PR libstdc++/106320 libstdc++-v3/ChangeLog: * testsuite/std/ranges/adaptors/join.cc (test13): New test. (cherry picked from commit db19cfdac8ede93172aecc58612171c239c993ad) Diff: --- libstdc++-v3/testsuite/std/ranges/adaptors/join.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc b/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc index 8986f718229..530ab6663b5 100644 --- a/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc +++ b/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc @@ -205,6 +205,18 @@ test12() }(); } +void +test13() +{ + // PR libstdc++/106320 + auto l = std::views::transform([](auto x) { + return x | std::views::transform([i=0](auto y) { + return y; + }); + }); + std::vector> v{{5, 6, 7}}; + v | l | std::views::join; +} int main() { @@ -220,4 +232,5 @@ main() test10(); test11(); test12(); + test13(); }