[libcxx] r347232 - [libcxx] Add missing <cstddef> includes in tests
Louis Dionne
ldionne at apple.com
Mon Nov 19 09:39:50 PST 2018
Author: ldionne
Date: Mon Nov 19 09:39:50 2018
New Revision: 347232
URL: http://llvm.org/viewvc/llvm-project?rev=347232&view=rev
Log:
[libcxx] Add missing <cstddef> includes in tests
Some tests use type std::max_align_t, but don't include <cstddef> header
directly. As a result, these tests won't compile against some conformant
libraries.
Reviewed as https://reviews.llvm.org/D54645.
Thanks to Andrey Maksimov for the patch.
Modified:
libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp
libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp
libcxx/trunk/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp
Modified: libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp?rev=347232&r1=347231&r2=347232&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/array/array.data/data.pass.cpp Mon Nov 19 09:39:50 2018
@@ -13,6 +13,8 @@
#include <array>
#include <cassert>
+#include <cstddef> // for std::max_align_t
+
#include "test_macros.h"
// std::array is explicitly allowed to be initialized with A a = { init-list };.
Modified: libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp?rev=347232&r1=347231&r2=347232&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/array/array.data/data_const.pass.cpp Mon Nov 19 09:39:50 2018
@@ -13,6 +13,7 @@
#include <array>
#include <cassert>
+#include <cstddef> // for std::max_align_t
#include "test_macros.h"
Modified: libcxx/trunk/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp?rev=347232&r1=347231&r2=347232&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp Mon Nov 19 09:39:50 2018
@@ -14,6 +14,7 @@
#include <memory>
#include <cassert>
+#include <cstddef> // for std::max_align_t
#include <iostream>
#include "test_macros.h"
More information about the libcxx-commits
mailing list