File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
tests/std/tests/P1208R6_source_location Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -196,9 +196,8 @@ constexpr void sub_member_test() {
196
196
assert (s_i.x .loc .column () == 5 );
197
197
#endif // ^^^ C1XX ^^^
198
198
#if _USE_DETAILED_FUNCTION_NAME_IN_SOURCE_LOCATION
199
- #ifdef __EDG__ // TRANSITION, EDG is changing to match C1XX's output
200
- assert (s_i.x .loc .function_name () == THISCALL_OR_CDECL " s2::s2(int)" sv
201
- || s_i.x .loc .function_name () == " s2::s2(int)" sv);
199
+ #ifdef __EDG__ // TRANSITION, EDG is changing to almost match C1XX's output
200
+ assert (s_i.x .loc .function_name () == " __cdecl s2::s2(int)" sv || s_i.x .loc .function_name () == " s2::s2(int)" sv);
202
201
#else // ^^^ workaround / no workaround vvv
203
202
assert (s_i.x .loc .function_name () == THISCALL_OR_CDECL " s2::s2(int)" sv);
204
203
#endif // ^^^ no workaround ^^^
@@ -245,7 +244,7 @@ constexpr void lambda_test() {
245
244
assert (fun2 == " auto " THISCALL_OR_CDECL " lambda_test()::(anonymous class)::operator()(void) const" sv);
246
245
#elif defined(__EDG__) // ^^^ detailed Clang / detailed __EDG__ vvv
247
246
// TRANSITION, EDG is changing to resemble C1XX's output somewhat more closely
248
- assert (fun2 == THISCALL_OR_CDECL " lambda [](void)->auto::operator()(void)->auto" sv
247
+ assert (fun2 == " __cdecl lambda [](void)->auto::operator()(void)->auto" sv
249
248
|| fun2 == " lambda []()->auto::operator()()->auto" sv);
250
249
#else // ^^^ detailed __EDG__ / detailed C1XX vvv
251
250
assert (fun2.starts_with (" struct std::source_location " THISCALL_OR_CDECL " lambda_test::<lambda_" sv));
You can’t perform that action at this time.
0 commit comments