[libcxx-commits] [libcxx] [libc++][test] Disable test coverage for `_BitInt` for MSVC STL (PR #212435)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 28 02:08:29 PDT 2026


================
@@ -45,7 +45,8 @@
 // _BitInt(N) is a C23 standard feature and a Clang extension in earlier C and C++.
 // __BITINT_MAXWIDTH__ is the portable probe: defined by every compiler that accepts _BitInt.
 // Note __has_extension(bit_int) is unusable because it is not recognized by Clang and produces 0.
-#ifdef __BITINT_MAXWIDTH__
+// Currently, MSVC STL has no plan to support _BitInt(N). So we should not enable test coverage for it.
+#if defined(__BITINT_MAXWIDTH__) && !defined(_MSVC_STL_VERSION)
----------------
philnik777 wrote:

This should probably be `&& defined(_LIBCPP_VERSION)`, since it's an extension we explicitly support.

https://github.com/llvm/llvm-project/pull/212435


More information about the libcxx-commits mailing list