summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/DeclTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-06-03 19:37:18 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-06-03 19:37:18 +0000
commit8a8557e629968adb94c23fb2af11ce5a147172ee (patch)
tree884334d15ceabebce530cb2a36f6b572aebdc1d9 /clang/unittests/AST/DeclTest.cpp
parent35579dde40306e65608f2eca20403272e5d21e9e (diff)
downloadbcm5719-llvm-8a8557e629968adb94c23fb2af11ce5a147172ee.tar.gz
bcm5719-llvm-8a8557e629968adb94c23fb2af11ce5a147172ee.zip
__uint128_t is only available on 64 bit platforms, only test it when it's around.
llvm-svn: 183146
Diffstat (limited to 'clang/unittests/AST/DeclTest.cpp')
-rw-r--r--clang/unittests/AST/DeclTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/AST/DeclTest.cpp b/clang/unittests/AST/DeclTest.cpp
index ff7c30cbeee..d377ffda623 100644
--- a/clang/unittests/AST/DeclTest.cpp
+++ b/clang/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;"
OpenPOWER on IntegriCloud