File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,14 @@ namespace
3636 }
3737}
3838
39- #if defined(__clang__)
39+ #if defined(__clang__) && defined(_MSC_VER)
4040// FIXME: Blocked on __cpp_consteval, see:
4141// * https://github.com/microsoft/cppwinrt/pull/1203#issuecomment-1279764927
4242// * https://github.com/llvm/llvm-project/issues/57094
4343TEST_CASE (" custom_error_logger" , " [!shouldfail]" )
44+ #elif defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 160000
45+ // <source_location> not available in libc++ before LLVM 16
46+ TEST_CASE (" custom_error_logger" , " [!shouldfail]" )
4447#else
4548TEST_CASE (" custom_error_logger" )
4649#endif
@@ -61,6 +64,8 @@ TEST_CASE("custom_error_logger")
6164 REQUIRE (!functionNameSv.empty ());
6265#if defined(__GNUC__) && !defined(__clang__)
6366 REQUIRE (functionNameSv == " void {anonymous}::FailOnLine15()" );
67+ #elif defined(__GNUC__) && defined(__clang__)
68+ REQUIRE (functionNameSv == " void (anonymous namespace)::FailOnLine15()" );
6469#else
6570 REQUIRE (functionNameSv == " FailOnLine15" );
6671#endif
You can’t perform that action at this time.
0 commit comments