]> granicus.if.org Git - clang/commitdiff
__uint128_t is only available on 64 bit platforms, only test it when it's around.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 3 Jun 2013 19:37:18 +0000 (19:37 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 3 Jun 2013 19:37:18 +0000 (19:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183146 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/AST/DeclTest.cpp

index ff7c30cbeeedbc00d49d23a54fe093f1b1cd8dd5..d377ffda623e1ca71940f14cd83254c1554f52e7 100644 (file)
@@ -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;"