From c69e1733cdcf74cde52f596310dd8d07eb28e585 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 3 Jun 2013 19:37:18 +0000 Subject: [PATCH] __uint128_t is only available on 64 bit platforms, only test it when it's around. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183146 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/AST/DeclTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/AST/DeclTest.cpp b/unittests/AST/DeclTest.cpp index ff7c30cbee..d377ffda62 100644 --- a/unittests/AST/DeclTest.cpp +++ b/unittests/AST/DeclTest.cpp @@ -33,8 +33,10 @@ TEST(Decl, CleansUpAPValues) { "union Y { constexpr Y(int a) : a(a) {} int a; }; constexpr Y y = { 42 };" "constexpr int z[2] = { 42, 43 };" "constexpr int __attribute__((vector_size(16))) v1 = {};" + "\n#ifdef __SIZEOF_INT128__\n" "constexpr __uint128_t large_int = 0xffffffffffffffff;" "constexpr __uint128_t small_int = 1;" + "\n#endif\n" "constexpr double d1 = 42.42;" "constexpr long double d2 = 42.42;" "constexpr _Complex long double c1 = 42.0i;" -- 2.50.1