Fix tests for C++23's multi-arg index operator

Closes #2744
This commit is contained in:
Martin Hořeňovský
2023-10-28 21:49:49 +02:00
parent 6ebc013b8c
commit 79d39a1954
10 changed files with 33 additions and 20 deletions

View File

@@ -2740,9 +2740,9 @@ Message.tests.cpp:<line number>
Message.tests.cpp:<line number>: PASSED:
with messages:
std::vector<int>{1, 2, 3}[0, 1, 2] := 3
std::vector<int>{1, 2, 3}[(0, 1)] := 2
std::vector<int>{1, 2, 3}[0] := 1
custom_index_op<int>{1, 2, 3}[0, 1, 2] := 0
custom_index_op<int>{1, 2, 3}[(0, 1)] := 0
custom_index_op<int>{1, 2, 3}[0] := 0
(helper_1436<int, int>{12, -12}) := { 12, -12 }
(helper_1436<int, int>(-12, 12)) := { -12, 12 }
(1, 2) := 2