diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2013-07-15 18:09:11 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2013-07-15 18:09:11 +0000 |
| commit | 10f8387b9430099bd5dc43db860ade8d165d8d94 (patch) | |
| tree | 857b2145bea45ba0ec2d5b1268ea4e23669c437f /libcxx/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp | |
| parent | 837bba1c51578407a03ac940f927e44ca8605b16 (diff) | |
| download | bcm5719-llvm-10f8387b9430099bd5dc43db860ade8d165d8d94.tar.gz bcm5719-llvm-10f8387b9430099bd5dc43db860ade8d165d8d94.zip | |
A few fixes to tests for Windows port.
llvm-svn: 186334
Diffstat (limited to 'libcxx/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp')
| -rw-r--r-- | libcxx/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp b/libcxx/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp index c896aa20229..9ee89c29cf0 100644 --- a/libcxx/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp +++ b/libcxx/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp @@ -12,6 +12,7 @@ // alignment_of #include <type_traits> +#include <cstdint> template <class T, unsigned A> void test_alignment_of() @@ -32,8 +33,8 @@ int main() { test_alignment_of<int&, 4>(); test_alignment_of<Class, 1>(); - test_alignment_of<int*, sizeof(long) == 4 ? 4 : 8>(); - test_alignment_of<const int*, sizeof(long) == 4 ? 4 : 8>(); + test_alignment_of<int*, sizeof(intptr_t)>(); + test_alignment_of<const int*, sizeof(intptr_t)>(); test_alignment_of<char[3], 1>(); test_alignment_of<int, 4>(); test_alignment_of<double, 8>(); |

