[libcxx-commits] [libcxx] 835cf3c - [libc++][test] Fix missing include in `bit_ceil.fail.cpp`
Joe Loser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 9 07:33:30 PST 2023
Author: Joe Loser
Date: 2023-01-09T08:32:31-07:00
New Revision: 835cf3ca6bee4b866488e08db1a2fd158a3ad086
URL: https://github.com/llvm/llvm-project/commit/835cf3ca6bee4b866488e08db1a2fd158a3ad086
DIFF: https://github.com/llvm/llvm-project/commit/835cf3ca6bee4b866488e08db1a2fd158a3ad086.diff
LOG: [libc++][test] Fix missing include in `bit_ceil.fail.cpp`
The test uses `size_t` but does not include a header defining it. Include
`<cstddef>` which provides `size_t`.
Differential Revision: https://reviews.llvm.org/D141284
Added:
Modified:
libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.fail.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.fail.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.fail.cpp
index 4c4c901be2c94..962291dd9787c 100644
--- a/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.fail.cpp
+++ b/libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.fail.cpp
@@ -15,9 +15,10 @@
// T is an unsigned integer type
#include <bit>
+#include <cassert>
+#include <cstddef>
#include <cstdint>
#include <limits>
-#include <cassert>
#include "test_macros.h"
More information about the libcxx-commits
mailing list