[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
This commit is contained in:
Louis Dionne
2018-11-19 17:39:50 +00:00
parent 13b7f7b500
commit a320121c4c
3 changed files with 4 additions and 0 deletions

View 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 };.

View File

@@ -13,6 +13,7 @@
#include <array>
#include <cassert>
#include <cstddef> // for std::max_align_t
#include "test_macros.h"

View File

@@ -14,6 +14,7 @@
#include <memory>
#include <cassert>
#include <cstddef> // for std::max_align_t
#include <iostream>
#include "test_macros.h"