[libcxx-commits] [libcxx] cd97aae - [libc++] Add missing `<cstddef>` include in span test
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 14 12:07:23 PST 2022
Author: Louis Dionne
Date: 2022-01-14T15:07:17-05:00
New Revision: cd97aaee5fef87215eebbd17a31099fe4437ce1f
URL: https://github.com/llvm/llvm-project/commit/cd97aaee5fef87215eebbd17a31099fe4437ce1f
DIFF: https://github.com/llvm/llvm-project/commit/cd97aaee5fef87215eebbd17a31099fe4437ce1f.diff
LOG: [libc++] Add missing `<cstddef>` include in span test
Added:
Modified:
libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp b/libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp
index bcb34a9f2e59..9ca751e6c3c6 100644
--- a/libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp
+++ b/libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp
@@ -15,6 +15,7 @@
#include <span>
#include <cassert>
+#include <cstddef>
struct Sink {
constexpr Sink() = default;
@@ -38,8 +39,7 @@ constexpr bool test() {
return true;
}
-int main(int, char**)
-{
+int main(int, char**) {
test();
static_assert(test());
More information about the libcxx-commits
mailing list