From 13fbe9d5e37cc50ea550e61dfabdbebd9ede8b3d Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Mon, 3 Feb 2014 23:26:56 +0000 Subject: [PATCH] Fix numeric.limits.members/traps.pass.cpp to pass on non-x86 architectures. Fixes bug #18468 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@200724 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../numeric.limits.members/traps.pass.cpp | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/test/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp b/test/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp index 611ce56dd..a409740cf 100644 --- a/test/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp +++ b/test/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp @@ -13,6 +13,12 @@ #include +#if (defined(__i386__) || defined(__x86_64__)) +static const bool integral_types_trap = true; +#else +static const bool integral_types_trap = false; +#endif + template void test() @@ -26,22 +32,22 @@ test() int main() { test(); - test(); - test(); - test(); - test(); + test(); + test(); + test(); + test(); #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS - test(); - test(); + test(); + test(); #endif // _LIBCPP_HAS_NO_UNICODE_CHARS - test(); - test(); - test(); - test(); - test(); - test(); - test(); - test(); + test(); + test(); + test(); + test(); + test(); + test(); + test(); + test(); test(); test(); test();