Stop using __has_trivial_copy on recent clang versions. (#7443)

Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
Mirko Bonadei
2022-08-15 18:49:59 +02:00
committed by GitHub
parent 214125e417
commit 137fec7164

View File

@@ -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