[libcxx-commits] [PATCH] D141284: [libc++][test] Fix missing include in `bit_ceil.fail.cpp`
Joe Loser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 9 07:14:51 PST 2023
jloser created this revision.
jloser added reviewers: philnik, Mordante.
Herald added a project: All.
jloser requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
The test uses `size_t` but does not include a header defining it. Include
`<cstddef>` which provides `size_t`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141284
Files:
libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.fail.cpp
Index: libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.fail.cpp
===================================================================
--- libcxx/test/std/numerics/bit/bit.pow.two/bit_ceil.fail.cpp
+++ 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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141284.487423.patch
Type: text/x-patch
Size: 469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230109/df58716e/attachment.bin>
More information about the libcxx-commits
mailing list