commit | a320121c4ce573e20c034e6ea32c70d97ee26db5 | [log] [tgz] |
---|---|---|
author | Louis Dionne <ldionne@apple.com> | Mon Nov 19 17:39:50 2018 +0000 |
committer | Louis Dionne <ldionne@apple.com> | Mon Nov 19 17:39:50 2018 +0000 |
tree | e61dd2344e0d7e8ba58fe54f3ee81259bb2f1bf5 | |
parent | 13b7f7b5002fa6128ac7e901889d6d5166de9b6e [diff] |
[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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@347232 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/std/containers/sequences/array/array.data/data.pass.cpp b/test/std/containers/sequences/array/array.data/data.pass.cpp index 593df3c..436cea4 100644 --- a/test/std/containers/sequences/array/array.data/data.pass.cpp +++ b/test/std/containers/sequences/array/array.data/data.pass.cpp
@@ -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 };.
diff --git a/test/std/containers/sequences/array/array.data/data_const.pass.cpp b/test/std/containers/sequences/array/array.data/data_const.pass.cpp index e3d9a69..0b6c0c4 100644 --- a/test/std/containers/sequences/array/array.data/data_const.pass.cpp +++ b/test/std/containers/sequences/array/array.data/data_const.pass.cpp
@@ -13,6 +13,7 @@ #include <array> #include <cassert> +#include <cstddef> // for std::max_align_t #include "test_macros.h"
diff --git a/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp b/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp index 70c5e46..b531753 100644 --- a/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp +++ b/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp
@@ -14,6 +14,7 @@ #include <memory> #include <cassert> +#include <cstddef> // for std::max_align_t #include <iostream> #include "test_macros.h"