forked from OSchip/llvm-project
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
24f67473dd
commit
b3e9b07a7d
|
@ -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