From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1888) id D44C43858403; Mon, 12 Sep 2022 19:05:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D44C43858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663009557; bh=Rpy81tOjUwJLnlxMOpEWjnz4W2524TaxfkqMQ6blhlA=; h=From:To:Subject:Date:From; b=jUG3p6tr9Qn7iPlTeEoLKi1QHoDQUHu6p011lSKkCXgku7Jj4BWyMTCxZdlrnRajf xIUSS4y70S2ka5YtCKwThwwMraF5jxELAm2EYbqTrywo9uYhbKKRU3ihqcFVxDpfEK 4N64usPnG5IYAJ7o/uOPXzO/+s0pxPF+eZBE3PQs= 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 r13-2629] libstdc++: Add already-accepted testcase [PR106320] X-Act-Checkin: gcc X-Git-Author: Patrick Palka X-Git-Refname: refs/heads/master X-Git-Oldrev: 7c989a8ed47228bdd494a2f0d1f6fdd325f953d7 X-Git-Newrev: db19cfdac8ede93172aecc58612171c239c993ad Message-Id: <20220912190557.D44C43858403@sourceware.org> Date: Mon, 12 Sep 2022 19:05:57 +0000 (GMT) List-Id: https://gcc.gnu.org/g:db19cfdac8ede93172aecc58612171c239c993ad commit r13-2629-gdb19cfdac8ede93172aecc58612171c239c993ad 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. 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(); }