[libcxx-commits] [libcxx] 0ad9013 - [libc++][test] Remove unused macro in is_constructible.pass.cpp. NFC.
Joe Loser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 5 07:16:48 PDT 2021
Author: Joe Loser
Date: 2021-10-05T10:15:24-04:00
New Revision: 0ad9013fcd05ce6d9a4ebcdadbaf526efdcffa7b
URL: https://github.com/llvm/llvm-project/commit/0ad9013fcd05ce6d9a4ebcdadbaf526efdcffa7b
DIFF: https://github.com/llvm/llvm-project/commit/0ad9013fcd05ce6d9a4ebcdadbaf526efdcffa7b.diff
LOG: [libc++][test] Remove unused macro in is_constructible.pass.cpp. NFC.
Test file defines `LIBCPP11_STATIC_ASSERT` but it never uses it now. It
always uses `static_assert` unconditionally. So, remove the unused
macro.
Added:
Modified:
libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp
index e4fad7cd36c94..578efb90f7f1a 100644
--- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp
+++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp
@@ -14,12 +14,6 @@
#include <type_traits>
#include "test_macros.h"
-#if TEST_STD_VER >= 11 && defined(_LIBCPP_VERSION)
-#define LIBCPP11_STATIC_ASSERT(...) static_assert(__VA_ARGS__)
-#else
-#define LIBCPP11_STATIC_ASSERT(...) ((void)0)
-#endif
-
struct A
{
explicit A(int);
More information about the libcxx-commits
mailing list