diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-06-21 18:46:07 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-06-21 18:46:07 +0000 |
commit | 65a407c2ceabcb6ff8f62c45ff8de2b473823e2c (patch) | |
tree | f28c8426cf8ea77f4f185b331ba104819bf0899b /clang/unittests/AST/StmtPrinterTest.cpp | |
parent | 30d7731032d7c841b1dfa9ad0900d8ae987fab11 (diff) | |
download | bcm5719-llvm-65a407c2ceabcb6ff8f62c45ff8de2b473823e2c.tar.gz bcm5719-llvm-65a407c2ceabcb6ff8f62c45ff8de2b473823e2c.zip |
Lex: Use the correct types for MS integer suffixes
Something went wrong with r211426, it is an older version of this code
and should not have been committed. It was reverted with r211434.
Original commit message:
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: 211441
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 } |