From eba77cce1f168a5408c27f421451f96a2821864f Mon Sep 17 00:00:00 2001 From: MikeDvorskiy Date: Mon, 16 Dec 2024 16:21:55 +0100 Subject: [PATCH] Update test/xpu_api/ranges/xpu_std_reverse_view.pass.cpp Co-authored-by: Dmitriy Sobolev --- test/xpu_api/ranges/xpu_std_reverse_view.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/xpu_api/ranges/xpu_std_reverse_view.pass.cpp b/test/xpu_api/ranges/xpu_std_reverse_view.pass.cpp index 308ffda8de..a117451f04 100644 --- a/test/xpu_api/ranges/xpu_std_reverse_view.pass.cpp +++ b/test/xpu_api/ranges/xpu_std_reverse_view.pass.cpp @@ -29,7 +29,7 @@ main() auto test = [](){ auto res = std::ranges::views::iota(0, 4) | std::ranges::views::reverse; return res.size() == 4 && res[0] == 3 && res[1] == 2 && res[2] == 1 && res[3] == 0 && - (*res.begin() + 2) == 1 && res.end() - res.begin() == 4; + *(res.begin() + 2) == 1 && res.end() - res.begin() == 4; }; const bool res = kernel_test(test); EXPECT_TRUE(res, "Wrong result of reverse_view check within a kernel");