mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-11-23 20:09:41 +00:00
Clean up a bunch of warnings in the tests, 3 of which actually turned out to be test bugs.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@131479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ad935d583d
commit
97ecd64913
@ -20,7 +20,7 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
static_assert(std::launch::any == std::launch::async | std::launch::deferred, "");
|
||||
static_assert(std::launch::any == (std::launch::async | std::launch::deferred), "");
|
||||
static_assert(std::launch::async == 1, "");
|
||||
static_assert(std::launch::deferred == 2, "");
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ int main()
|
||||
assert(A::n_copies == 0);
|
||||
assert(A::n_moves > 0);
|
||||
}
|
||||
A::n_copies == 0;
|
||||
A::n_copies = 0;
|
||||
A::n_copies = 0;
|
||||
{
|
||||
A a(5);
|
||||
|
@ -51,7 +51,7 @@ int main()
|
||||
assert(A::n_moves > 0);
|
||||
}
|
||||
assert(test_alloc_base::count == 0);
|
||||
A::n_copies == 0;
|
||||
A::n_copies = 0;
|
||||
A::n_copies = 0;
|
||||
{
|
||||
A a(5);
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include <bitset>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
void test_char_pointer_ctor()
|
||||
{
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include <bitset>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
void test_default_ctor()
|
||||
{
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include <bitset>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
void test_string_ctor()
|
||||
{
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include <bitset>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
void test_val_ctor()
|
||||
{
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -16,6 +16,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include <bitset>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
void test_reset_all()
|
||||
{
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include <bitset>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
void test_set_all()
|
||||
{
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -26,6 +26,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#pragma clang diagnostic ignored "-Wtautological-compare"
|
||||
|
||||
template <std::size_t N>
|
||||
std::bitset<N>
|
||||
make_bitset()
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
|
||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
move_only(move_only&&) {}
|
||||
move_only& operator=(move_only&&) {}
|
||||
move_only& operator=(move_only&&) {return *this;}
|
||||
#else // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
operator std::__rv<move_only> () {return std::__rv<move_only>(*this);}
|
||||
move_only(std::__rv<move_only>) {}
|
||||
|
Loading…
Reference in New Issue
Block a user