[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:
Mark de Wever 2022-01-24 19:04:06 +01:00
parent 33b45ee44b
commit 5d3ab6a2bb
7 changed files with 10 additions and 0 deletions

View File

@ -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>;

View File

@ -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&>);

View File

@ -16,6 +16,7 @@
#include <type_traits>
#include "arithmetic.h"
#include "test_macros.h"
template <typename T>
constexpr bool CheckIntegralQualifiers() {

View File

@ -16,6 +16,7 @@
#include <type_traits>
#include "arithmetic.h"
#include "test_macros.h"
template <typename T>
constexpr bool CheckSignedIntegralQualifiers() {

View File

@ -16,6 +16,7 @@
#include <type_traits>
#include "arithmetic.h"
#include "test_macros.h"
template <typename T>
constexpr bool CheckUnsignedIntegralQualifiers() {

View File

@ -15,6 +15,7 @@
#include <compare>
#include "compare_types.h"
#include "test_macros.h"
namespace fundamentals {
// with default ordering

View File

@ -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> >);