diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-17 05:29:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-17 05:29:40 +0000 |
commit | 3dfff974eccd5421583576be2dd8924db501e325 (patch) | |
tree | 0c4d665900d0b1c792887c64827fada8289ef70a /clang/test/Lexer | |
parent | 1fd734276dcd0d8bf75d3e7f2c902887690d77ac (diff) | |
download | bcm5719-llvm-3dfff974eccd5421583576be2dd8924db501e325.tar.gz bcm5719-llvm-3dfff974eccd5421583576be2dd8924db501e325.zip |
reimplement r90860, fixing a couple of problems:
1. Don't make a copy of LangOptions every time a lexer is created.
2. Don't make CharInfo global mutable state.
3. Fix the implementation to properly treat ^Z as EOF instead of as
horizontal whitespace, which matches the semantic implemented by VC++.
llvm-svn: 91586
Diffstat (limited to 'clang/test/Lexer')
-rw-r--r-- | clang/test/Lexer/msdos-cpm-eof.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Lexer/msdos-cpm-eof.c b/clang/test/Lexer/msdos-cpm-eof.c index 0a6956d6b3a..9ef6e32ea0b 100644 --- a/clang/test/Lexer/msdos-cpm-eof.c +++ b/clang/test/Lexer/msdos-cpm-eof.c @@ -1,5 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s -int a; +int x; + +I am random garbage after ^Z |