[libcxx-commits] [libcxx] 5d3ab6a - [libc++][nfc] Include test_macros.h in more tests.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 27 08:28:42 PST 2022
Author: Mark de Wever
Date: 2022-01-27T17:28:26+01:00
New Revision: 5d3ab6a2bb36a371584b27ef3aa5c0d8d0bdc94e
URL: https://github.com/llvm/llvm-project/commit/5d3ab6a2bb36a371584b27ef3aa5c0d8d0bdc94e
DIFF: https://github.com/llvm/llvm-project/commit/5d3ab6a2bb36a371584b27ef3aa5c0d8d0bdc94e.diff
LOG: [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
Added:
Modified:
libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp
libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp
libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp
libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp
libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp
libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp
libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp
index 45c8f4825dc56..7bbf6865bf321 100644
--- a/libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp
+++ b/libcxx/test/std/concepts/concepts.lang/concept.common/common_with.compile.pass.cpp
@@ -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>;
diff --git a/libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp
index 6bd8906b0c0cc..70a674ea8524c 100644
--- a/libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp
+++ b/libcxx/test/std/concepts/concepts.lang/concept.commonref/common_reference.compile.pass.cpp
@@ -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&>);
diff --git a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp
index 42b85a1c020bb..cb9c4353a8c75 100644
--- a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp
+++ b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/integral.pass.cpp
@@ -16,6 +16,7 @@
#include <type_traits>
#include "arithmetic.h"
+#include "test_macros.h"
template <typename T>
constexpr bool CheckIntegralQualifiers() {
diff --git a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp
index df97b39709dc9..4092ab9c2d1a1 100644
--- a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp
+++ b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/signed_integral.pass.cpp
@@ -16,6 +16,7 @@
#include <type_traits>
#include "arithmetic.h"
+#include "test_macros.h"
template <typename T>
constexpr bool CheckSignedIntegralQualifiers() {
diff --git a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp
index 02a62865f2ddf..f390f452bbf2e 100644
--- a/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp
+++ b/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/unsigned_integral.pass.cpp
@@ -16,6 +16,7 @@
#include <type_traits>
#include "arithmetic.h"
+#include "test_macros.h"
template <typename T>
constexpr bool CheckUnsignedIntegralQualifiers() {
diff --git a/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp b/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp
index e9c1ae20d62f4..5ff5213d303be 100644
--- a/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp
+++ b/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp
@@ -15,6 +15,7 @@
#include <compare>
#include "compare_types.h"
+#include "test_macros.h"
namespace fundamentals {
// with default ordering
diff --git a/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp b/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp
index c212f9efb6ce3..77d2443aa715c 100644
--- a/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/uniform_random_bit_generator.compile.pass.cpp
@@ -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> >);
More information about the libcxx-commits
mailing list