mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-22 16:37:40 +08:00
[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:
@@ -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 };.
|
||||
|
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
#include <cstddef> // for std::max_align_t
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <cassert>
|
||||
#include <cstddef> // for std::max_align_t
|
||||
#include <iostream>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
Reference in New Issue
Block a user