diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-01-12 14:51:04 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-01-12 14:51:04 +0000 |
commit | 8d113d430f4aee2ad49ba680dd07b453e44e2442 (patch) | |
tree | 74e188990fb20b9030ce70958f64260a19e69b4b /libcxx/test/std/utilities/intseq/intseq.intseq | |
parent | 00021429d4b89d2f1d8833ea8cc4688107ab5262 (diff) | |
download | bcm5719-llvm-8d113d430f4aee2ad49ba680dd07b453e44e2442.tar.gz bcm5719-llvm-8d113d430f4aee2ad49ba680dd07b453e44e2442.zip |
Add a bunch of missing includes in the test suite to make it more portable. Fixes bugs #26120 and #26121. Thanks to Jonathan Wakely for the reports and the patches.
llvm-svn: 257474
Diffstat (limited to 'libcxx/test/std/utilities/intseq/intseq.intseq')
-rw-r--r-- | libcxx/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp b/libcxx/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp index a795e90c41e..5c789f5db27 100644 --- a/libcxx/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp +++ b/libcxx/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp @@ -19,6 +19,7 @@ #include <utility> #include <type_traits> +#include <cstddef> #include <cassert> int main() @@ -27,7 +28,7 @@ int main() // Make a few of sequences using int3 = std::integer_sequence<int, 3, 2, 1>; - using size1 = std::integer_sequence<size_t, 7>; + using size1 = std::integer_sequence<std::size_t, 7>; using ushort2 = std::integer_sequence<unsigned short, 4, 6>; using bool0 = std::integer_sequence<bool>; @@ -35,7 +36,7 @@ int main() static_assert ( std::is_same<int3::value_type, int>::value, "int3 type wrong" ); static_assert ( int3::size() == 3, "int3 size wrong" ); - static_assert ( std::is_same<size1::value_type, size_t>::value, "size1 type wrong" ); + static_assert ( std::is_same<size1::value_type, std::size_t>::value, "size1 type wrong" ); static_assert ( size1::size() == 1, "size1 size wrong" ); static_assert ( std::is_same<ushort2::value_type, unsigned short>::value, "ushort2 type wrong" ); |