diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-03 19:37:18 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-03 19:37:18 +0000 |
commit | 8a8557e629968adb94c23fb2af11ce5a147172ee (patch) | |
tree | 884334d15ceabebce530cb2a36f6b572aebdc1d9 /clang/unittests/AST/DeclTest.cpp | |
parent | 35579dde40306e65608f2eca20403272e5d21e9e (diff) | |
download | bcm5719-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.cpp | 2 |
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;" |