]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Add another range for coroutines testcase [PR118574]
authorJakub Jelinek <jakub@redhat.com>
Thu, 13 Feb 2025 10:53:04 +0000 (11:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Feb 2025 10:53:04 +0000 (11:53 +0100)
commita1855a3e0bcf0f94bc9fa421ccc9ebd0565c62cd
tree91a9a603497c2674643a8dab23f2df89c47a9e75
parent26baa2c09b39abf037afad349a318dc5734eae25
testsuite: Add another range for coroutines testcase [PR118574]

This patch adds another range for coroutine testcase, which doesn't
extend (across co_await) just the __for_range var and what it binds
to (so passes even without -frange-for-ext-temps), but also some other
temporaries and verifies they are destructed in the right order.

2025-02-13  Jakub Jelinek  <jakub@redhat.com>

PR c++/118574
* g++.dg/coroutines/range-for2.C: New test.
gcc/testsuite/g++.dg/coroutines/range-for2.C [new file with mode: 0644]