From a320121c4ce573e20c034e6ea32c70d97ee26db5 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 19 Nov 2018 17:39:50 +0000 Subject: [PATCH] [libcxx] Add missing includes in tests Some tests use type std::max_align_t, but don't include 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 --- test/std/containers/sequences/array/array.data/data.pass.cpp | 2 ++ .../containers/sequences/array/array.data/data_const.pass.cpp | 1 + .../default.allocator/allocator.members/allocate.pass.cpp | 1 + 3 files changed, 4 insertions(+) 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 593df3ca2..436cea431 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 #include +#include // 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 e3d9a6907..0b6c0c48d 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 #include +#include // 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 70c5e4696..b53175376 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 #include +#include // for std::max_align_t #include #include "test_macros.h"