[libc++][test] Fix missing include in `endian.pass.cpp`
authorJoe Loser <joeloser@fastmail.com>
Mon, 9 Jan 2023 11:09:45 +0000 (12:09 +0100)
committerNikolas Klauser <nikolasklauser@berlin.de>
Mon, 9 Jan 2023 11:10:30 +0000 (12:10 +0100)
`endian.pass.cpp` uses `std::is_enum` and friends but doesn't include
`<type_traits>`.  Add the missing include.

Reviewed By: philnik, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D141239

libcxx/test/std/numerics/bit/bit.endian/endian.pass.cpp

index 4eedf05..ecba960 100644 (file)
@@ -15,6 +15,7 @@
 #include <cstring>
 #include <cassert>
 #include <cstdint>
+#include <type_traits>
 
 #include "test_macros.h"