summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-11-29 09:57:11 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-11-29 09:57:11 +0000
commit3b164774ad067557486dd1221f0ecbf2e905a816 (patch)
tree15cfe75aeea543b7291cdb910b6b96d4231c6b6a /unittests
parent53c61c5c0c912b5032882471f5215d66a11bb0ce (diff)
downloadclang-3b164774ad067557486dd1221f0ecbf2e905a816.tar.gz
ASTTests/StmtPrinterTest/StmtPrinter.TestMSIntegerLiteral: Suppress i128 according to r168856, for now.
I think "i128", that I conditioned out, could be completely removed. MS Compiler doesn't accept i128. We can assume no one would use i128. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/AST/StmtPrinterTest.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/unittests/AST/StmtPrinterTest.cpp b/unittests/AST/StmtPrinterTest.cpp
index 0fd1b2e6c3..10bd4b4cc1 100644
--- a/unittests/AST/StmtPrinterTest.cpp
+++ b/unittests/AST/StmtPrinterTest.cpp
@@ -146,17 +146,25 @@ TEST(StmtPrinter, TestMSIntegerLiteral) {
" 1i8, -1i8, 1ui8, "
" 1i16, -1i16, 1ui16, "
" 1i32, -1i32, 1ui32, "
- " 1i64, -1i64, 1ui64, "
+ " 1i64, -1i64, 1ui64"
+#if defined(__SIZEOF_INT128__)
+ ", "
" 1i128, -1i128, 1ui128, 1Ui128,"
- " 0x10000000000000000i128;"
+ " 0x10000000000000000i128"
+#endif
+ ";"
"}",
"A",
"1 , -1 , 1U , "
"1 , -1 , 1U , "
"1L , -1L , 1UL , "
- "1LL , -1LL , 1ULL , "
+ "1LL , -1LL , 1ULL"
+#if defined(__SIZEOF_INT128__)
+ " , "
"1 , -1 , 1U , 1U , "
- "18446744073709551616i128"));
+ "18446744073709551616i128"
+#endif
+ ));
// Should be: with semicolon
// WRONG; all 128-bit literals should be printed as 128-bit.
// (This is because currently we do semantic analysis incorrectly.)