Skip to content

Commit 6d25346

Browse files
authored
Prepare ranges test for MSVC fix (microsoft#5378)
1 parent f2a2933 commit 6d25346

File tree

1 file changed

+4
-0
lines changed
  • tests/std/tests/P0896R4_ranges_iterator_machinery

1 file changed

+4
-0
lines changed

tests/std/tests/P0896R4_ranges_iterator_machinery/test.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,11 @@ namespace iterator_cust_move_test {
10761076
#if defined(__clang__) || defined(__EDG__) // TRANSITION, VSO-1008447
10771077
static_assert(same_as<iter_rvalue_reference_t<int(int)>, int (&)(int)>);
10781078
#else // ^^^ no workaround / workaround vvv
1079+
#ifdef _MSVC_INTERNAL_TESTING // TRANSITION, assertion will fire once VSO-2066340 ships.
1080+
static_assert(same_as<iter_rvalue_reference_t<int(int)>, int (&&)(int)>);
1081+
#else // ^^^ defined(_MSVC_INTERNAL_TESTING) / !defined(_MSVC_INTERNAL_TESTING) vvv
10791082
static_assert(same_as<iter_rvalue_reference_t<int(int)>, int (*)(int)>);
1083+
#endif // ^^^ !defined(_MSVC_INTERNAL_TESTING)
10801084
#endif // ^^^ workaround ^^^
10811085

10821086
static_assert(same_as<iter_rvalue_reference_t<int[4]>, int&&>);

0 commit comments

Comments
 (0)