r183146 - __uint128_t is only available on 64 bit platforms, only test it when it's around.
Benjamin Kramer
benny.kra at googlemail.com
Mon Jun 3 12:37:18 PDT 2013
Author: d0k
Date: Mon Jun 3 14:37:18 2013
New Revision: 183146
URL: http://llvm.org/viewvc/llvm-project?rev=183146&view=rev
Log:
__uint128_t is only available on 64 bit platforms, only test it when it's around.
Modified:
cfe/trunk/unittests/AST/DeclTest.cpp
Modified: cfe/trunk/unittests/AST/DeclTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/DeclTest.cpp?rev=183146&r1=183145&r2=183146&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/DeclTest.cpp (original)
+++ cfe/trunk/unittests/AST/DeclTest.cpp Mon Jun 3 14:37:18 2013
@@ -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;"
More information about the cfe-commits
mailing list