summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/memory
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2018-11-19 17:39:50 +0000
committerLouis Dionne <ldionne@apple.com>2018-11-19 17:39:50 +0000
commitc019b30ac2fde66b9b2f40dc019cb02b9ac2b61c (patch)
treedb26776ad925e5f9faff358df9bc4824f4d7210b /libcxx/test/std/utilities/memory
parent054f8101f11810600a862ef310209afd98b7f0df (diff)
downloadbcm5719-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
Diffstat (limited to 'libcxx/test/std/utilities/memory')
-rw-r--r--libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp1
1 files changed, 1 insertions, 0 deletions
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"
OpenPOWER on IntegriCloud