aboutsummaryrefslogtreecommitdiff
path: root/libcxx/test/support
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/support')
-rw-r--r--libcxx/test/support/test_macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h
index 2fc25fc..c4e1600 100644
--- a/libcxx/test/support/test_macros.h
+++ b/libcxx/test/support/test_macros.h
@@ -264,6 +264,12 @@
#define LIBCPP_ONLY(...) static_assert(true, "")
#endif
+#ifdef _LIBCPP_USE_FROZEN_CXX03_HEADERS
+# define LIBCPP_NON_FROZEN_ASSERT(...) static_assert(true, "")
+#else
+# define LIBCPP_NON_FROZEN_ASSERT(...) LIBCPP_ASSERT(__VA_ARGS__)
+#endif
+
#if __has_cpp_attribute(nodiscard)
# define TEST_NODISCARD [[nodiscard]]
#else