diff options
| author | Louis Dionne <ldionne@apple.com> | 2018-11-19 17:39:50 +0000 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2018-11-19 17:39:50 +0000 |
| commit | c019b30ac2fde66b9b2f40dc019cb02b9ac2b61c (patch) | |
| tree | db26776ad925e5f9faff358df9bc4824f4d7210b | |
| parent | 054f8101f11810600a862ef310209afd98b7f0df (diff) | |
| download | bcm5719-llvm-c019b30ac2fde66b9b2f40dc019cb02b9ac2b61c.tar.gz bcm5719-llvm-c019b30ac2fde66b9b2f40dc019cb02b9ac2b61c.zip | |
[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.
llvm-svn: 347232
3 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/std/containers/sequences/array/array.data/data.pass.cpp b/libcxx/test/std/containers/sequences/array/array.data/data.pass.cpp index 593df3ca270..436cea4319e 100644 --- a/libcxx/test/std/containers/sequences/array/array.data/data.pass.cpp +++ b/libcxx/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/libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp b/libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp index e3d9a6907b6..0b6c0c48de0 100644 --- a/libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp +++ b/libcxx/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/libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp b/libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp index 70c5e46965a..b53175376dd 100644 --- a/libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp +++ b/libcxx/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" |

