diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -237,7 +237,7 @@ #define LIBCPP_ONLY(...) __VA_ARGS__ #else #define LIBCPP_ASSERT(...) ((void)0) -#define LIBCPP_STATIC_ASSERT(...) ((void)0) +#define LIBCPP_STATIC_ASSERT(...) static_assert(true, "") #define LIBCPP_ASSERT_NOEXCEPT(...) ((void)0) #define LIBCPP_ASSERT_NOT_NOEXCEPT(...) ((void)0) #define LIBCPP_ONLY(...) ((void)0)