[libcxx] Add missing <cstddef> includes in tests
authorLouis Dionne <ldionne@apple.com>
Mon, 19 Nov 2018 17:39:50 +0000 (17:39 +0000)
committerLouis Dionne <ldionne@apple.com>
Mon, 19 Nov 2018 17:39:50 +0000 (17:39 +0000)
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

libcxx/test/std/containers/sequences/array/array.data/data.pass.cpp
libcxx/test/std/containers/sequences/array/array.data/data_const.pass.cpp
libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp

index 593df3c..436cea4 100644 (file)
@@ -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 };.