forked from OSchip/llvm-project
[libc++][nfc] Include test_macros.h in more tests.
This should fix the regressions detected in D117992. This lands before D117992 to avoid breaking main. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D118056
This commit is contained in:
parent
33b45ee44b
commit
5d3ab6a2bb
|
@ -15,6 +15,8 @@
|
|||
#include <concepts>
|
||||
#include <type_traits>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
template <class T, class U>
|
||||
constexpr bool CheckCommonWith() noexcept {
|
||||
constexpr bool result = std::common_with<T, U>;
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include <concepts>
|
||||
#include <type_traits>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
template <class T, class U>
|
||||
constexpr bool CheckCommonReferenceWith() noexcept {
|
||||
static_assert(std::common_reference_with<T, U&>);
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <type_traits>
|
||||
|
||||
#include "arithmetic.h"
|
||||
#include "test_macros.h"
|
||||
|
||||
template <typename T>
|
||||
constexpr bool CheckIntegralQualifiers() {
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <type_traits>
|
||||
|
||||
#include "arithmetic.h"
|
||||
#include "test_macros.h"
|
||||
|
||||
template <typename T>
|
||||
constexpr bool CheckSignedIntegralQualifiers() {
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <type_traits>
|
||||
|
||||
#include "arithmetic.h"
|
||||
#include "test_macros.h"
|
||||
|
||||
template <typename T>
|
||||
constexpr bool CheckUnsignedIntegralQualifiers() {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <compare>
|
||||
|
||||
#include "compare_types.h"
|
||||
#include "test_macros.h"
|
||||
|
||||
namespace fundamentals {
|
||||
// with default ordering
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
#include <random>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
static_assert(std::uniform_random_bit_generator<
|
||||
std::linear_congruential_engine<unsigned int, 0U, 1U, 2U> >);
|
||||
|
||||
|
|
Loading…
Reference in New Issue