forked from OSchip/llvm-project
[libcxx] [test] Avoid Clang's -Wunused-const-variable in is_constructible.pass.cpp.
This happens when using Clang with MSVC's STL, so there are no actual uses of this variable. Fixes D31966. llvm-svn: 300079
This commit is contained in:
parent
ab85113a93
commit
a4961fe8ef
|
@ -251,6 +251,7 @@ int main()
|
|||
LIBCPP_STATIC_ASSERT(
|
||||
clang_disallows_valid_static_cast_bug !=
|
||||
std::__libcpp_is_constructible<int&&, ExplicitTo<int&&>>::value, "");
|
||||
((void)clang_disallows_valid_static_cast_bug); // Prevent unused warning
|
||||
#else
|
||||
static_assert(clang_disallows_valid_static_cast_bug == false, "");
|
||||
LIBCPP_STATIC_ASSERT(std::__libcpp_is_constructible<int&&, ExplicitTo<int&&>>::value, "");
|
||||
|
|
Loading…
Reference in New Issue