From c36025cd7195c2e00a5f8267298dcc3a66ec00ea Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 7 Apr 2021 18:51:53 +0200 Subject: [PATCH] Avoid testing for libc++ internal macros after D99834 As D99834 was meant specifically for FreeBSD, which still uses the older non-trivial std::pair copy constructors, test for `__FreeBSD__` instead of relying on a macro which is an internal detail of libc++. Noted by Louis Dionne. --- unittests/Support/TypeTraitsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/Support/TypeTraitsTest.cpp b/unittests/Support/TypeTraitsTest.cpp index cd78f0900b8..bd213437001 100644 --- a/unittests/Support/TypeTraitsTest.cpp +++ b/unittests/Support/TypeTraitsTest.cpp @@ -110,7 +110,7 @@ TEST(Triviality, ADT) { TrivialityTester, false, false>(); TrivialityTester, false, false>(); -#if !defined(_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR) +#if !defined(__FreeBSD__) TrivialityTester, true, true>(); #endif TrivialityTester, false, false>();