1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

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.
This commit is contained in:
Dimitry Andric 2021-04-07 18:51:53 +02:00
parent 3d5a1f14f3
commit c36025cd71

View File

@ -110,7 +110,7 @@ TEST(Triviality, ADT) {
TrivialityTester<llvm::SmallString<8>, false, false>();
TrivialityTester<std::function<int()>, false, false>();
#if !defined(_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR)
#if !defined(__FreeBSD__)
TrivialityTester<std::pair<int, bool>, true, true>();
#endif
TrivialityTester<llvm::unique_function<int()>, false, false>();