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 | d31bc8bc756b3734c79e3748627938ce25b8f30c (patch) | |
| tree | 0309589e50c8abaaff23ec660c1f1f64e672438c /unittests | |
| parent | af8926dfabf5db60a835151221a974cd8a39cb5c (diff) | |
| download | clang-d31bc8bc756b3734c79e3748627938ce25b8f30c.tar.gz clang-d31bc8bc756b3734c79e3748627938ce25b8f30c.tar.bz2 clang-d31bc8bc756b3734c79e3748627938ce25b8f30c.tar.xz | |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
| -rw-r--r-- | unittests/AST/StmtPrinterTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unittests/AST/StmtPrinterTest.cpp b/unittests/AST/StmtPrinterTest.cpp index c75cbdefbf..541fb3df1d 100644 --- a/unittests/AST/StmtPrinterTest.cpp +++ b/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 } |
