forked from OSchip/llvm-project
[libc++] Workaround unused variable warning in test
This only showed up in C++11/C++14 where the static_assert below was ifdef'd out, and the variable was indeed unused.
This commit is contained in:
parent
870363a22d
commit
682e703755
|
@ -34,7 +34,7 @@ template <class A>
|
|||
void
|
||||
test_atomic()
|
||||
{
|
||||
A a;
|
||||
A a; (void)a;
|
||||
#if TEST_STD_VER >= 17
|
||||
static_assert((std::is_same<typename A::value_type, decltype(a.load())>::value), "");
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue