diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-09-12 15:05:04 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-09-12 15:05:04 -0400 |
commit | db19cfdac8ede93172aecc58612171c239c993ad (patch) | |
tree | 65942b56c25d5beb9e9d7146b69050a2b0abfea3 | |
parent | 7c989a8ed47228bdd494a2f0d1f6fdd325f953d7 (diff) | |
download | gcc-db19cfdac8ede93172aecc58612171c239c993ad.zip gcc-db19cfdac8ede93172aecc58612171c239c993ad.tar.gz gcc-db19cfdac8ede93172aecc58612171c239c993ad.tar.bz2 |
libstdc++: Add already-accepted <ranges> 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.
-rw-r--r-- | libstdc++-v3/testsuite/std/ranges/adaptors/join.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc b/libstdc++-v3/testsuite/std/ranges/adaptors/join.cc index 8986f71..530ab66 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<std::vector<int>> v{{5, 6, 7}}; + v | l | std::views::join; +} int main() { @@ -220,4 +232,5 @@ main() test10(); test11(); test12(); + test13(); } |