mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-24 17:06:10 +00:00
Stop using __has_trivial_copy on recent clang versions. (#7443)
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -640,7 +640,8 @@ void SizePrefixedTest() {
|
|||||||
|
|
||||||
void TriviallyCopyableTest() {
|
void TriviallyCopyableTest() {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#if __GNUG__ && __GNUC__ < 5
|
#if __GNUG__ && __GNUC__ < 5 && \
|
||||||
|
!(defined(__clang__) && __clang_major__ >= 16)
|
||||||
TEST_EQ(__has_trivial_copy(Vec3), true);
|
TEST_EQ(__has_trivial_copy(Vec3), true);
|
||||||
#else
|
#else
|
||||||
#if __cplusplus >= 201103L
|
#if __cplusplus >= 201103L
|
||||||
|
|||||||
Reference in New Issue
Block a user