From: Dimitry Andric Date: Sat, 3 Apr 2021 10:20:13 +0000 (+0200) Subject: Don't check that std::pair is trivially copyable on FreeBSD X-Git-Tag: llvmorg-14-init~10498 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fbbb093aea52928bb8df4a2212f44ac3bac7733;p=platform%2Fupstream%2Fllvm.git Don't check that std::pair is trivially copyable on FreeBSD As FreeBSD already used libc++ before it changed its ABI, we still use the non-trivially copyable version of std::pair, which used to be exposed via `_LIBCPP_TRIVIAL_PAIR_COPY_CTOR`, but more recently via `_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR`. Reviewed By: serge-sans-paille Differential Revision: https://reviews.llvm.org/D99834 --- diff --git a/llvm/unittests/Support/TypeTraitsTest.cpp b/llvm/unittests/Support/TypeTraitsTest.cpp index 15a38b8..cd78f090 100644 --- a/llvm/unittests/Support/TypeTraitsTest.cpp +++ b/llvm/unittests/Support/TypeTraitsTest.cpp @@ -110,7 +110,9 @@ TEST(Triviality, ADT) { TrivialityTester, false, false>(); TrivialityTester, false, false>(); +#if !defined(_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR) TrivialityTester, true, true>(); +#endif TrivialityTester, false, false>(); TrivialityTester(); TrivialityTester, true, true>();