From 137fec7164f47bf81183b2eabf590f1cc46c19e9 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Mon, 15 Aug 2022 18:49:59 +0200 Subject: [PATCH] Stop using __has_trivial_copy on recent clang versions. (#7443) Co-authored-by: Derek Bailey --- tests/test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test.cpp b/tests/test.cpp index 97c808a86..a6128032e 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -640,7 +640,8 @@ void SizePrefixedTest() { void TriviallyCopyableTest() { // clang-format off - #if __GNUG__ && __GNUC__ < 5 + #if __GNUG__ && __GNUC__ < 5 && \ + !(defined(__clang__) && __clang_major__ >= 16) TEST_EQ(__has_trivial_copy(Vec3), true); #else #if __cplusplus >= 201103L