mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +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:
parent
3d5a1f14f3
commit
c36025cd71
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user