diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-06-21 00:51:59 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-06-21 00:51:59 +0000 |
commit | 252cbe25cb7e02df422cc9f4ac0fdf235c6b2cd8 (patch) | |
tree | 5fbae2e7f28d673555192a2f9b87c40e2772bf63 /clang/unittests/AST/StmtPrinterTest.cpp | |
parent | f105f588b31b4384bb48f528784cb05ae0eec060 (diff) | |
download | bcm5719-llvm-252cbe25cb7e02df422cc9f4ac0fdf235c6b2cd8.tar.gz bcm5719-llvm-252cbe25cb7e02df422cc9f4ac0fdf235c6b2cd8.zip |
Lex: Use the correct types for MS integer suffixes
We didn't properly implement support for the sized integer suffixes.
Suffixes like i16 were essentially ignored instead of mapping them to
the appropriately sized integer type.
This fixes PR20008.
Differential Revision: http://reviews.llvm.org/D4132
llvm-svn: 211426
Diffstat (limited to 'clang/unittests/AST/StmtPrinterTest.cpp')
-rw-r--r-- | clang/unittests/AST/StmtPrinterTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/unittests/AST/StmtPrinterTest.cpp b/clang/unittests/AST/StmtPrinterTest.cpp index c75cbdefbf2..541fb3df1d9 100644 --- a/clang/unittests/AST/StmtPrinterTest.cpp +++ b/clang/unittests/AST/StmtPrinterTest.cpp @@ -134,6 +134,8 @@ PrintedStmtCXX11Matches(StringRef Code, const StatementMatcher &NodeMatch, StringRef ContainingFunction, StringRef ExpectedPrinted) { std::vector<std::string> Args; + Args.push_back("-target"); + Args.push_back("i686-pc-win32"); Args.push_back("-std=c++98"); Args.push_back("-fms-extensions"); Args.push_back("-Wno-unused-value"); @@ -169,9 +171,9 @@ TEST(StmtPrinter, TestMSIntegerLiteral) { " 1i64, -1i64, 1ui64;" "}", "A", + "1i8 , -1i8 , 1Ui8 , " + "1i16 , -1i16 , 1Ui16 , " "1 , -1 , 1U , " - "1 , -1 , 1U , " - "1L , -1L , 1UL , " "1LL , -1LL , 1ULL")); // Should be: with semicolon } |