cppgc: young-gen: Fix gcc build failure

Old gcc versions (< gcc-8) have problems with parameter packs in
capture-lists wrapped in fold-expressions.

Bug: chromium:1029379
Change-Id: I0c0ee7caa2d750f551e93fdfeb2667328bee4acb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3627594
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Auto-Submit: Anton Bikineev <bikineev@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80356}
This commit is contained in:
Anton Bikineev 2022-05-04 14:31:22 +02:00 committed by V8 LUCI CQ
parent 3085de9b5c
commit 7e8b4bb645

View File

@ -109,9 +109,9 @@ TYPED_TEST_SUITE(MinorGCTestForType, ObjectTypes);
namespace {
template <typename... Args>
void RunMinorGCAndExpectObjectsPromoted(MinorGCTest& test, Args*... args) {
([args] { EXPECT_TRUE(IsHeapObjectYoung(args)); }(), ...);
EXPECT_TRUE((IsHeapObjectYoung(args) && ...));
test.CollectMinor();
([args] { EXPECT_TRUE(IsHeapObjectOld(args)); }(), ...);
EXPECT_TRUE((IsHeapObjectOld(args) && ...));
}
struct ExpectRememberedSlotsAdded final {