diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-04-20 20:35:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-04-20 20:35:58 +0000 |
| commit | fb24a3a4ec3d625981bb822e021dc89a0cf3fde1 (patch) | |
| tree | 20d53042ca9baae6abb062b22670a5305f79fc27 /clang/test/Lexer | |
| parent | 877aaa9706e8bed893cebfc292a2ca305ec30663 (diff) | |
| download | bcm5719-llvm-fb24a3a4ec3d625981bb822e021dc89a0cf3fde1.tar.gz bcm5719-llvm-fb24a3a4ec3d625981bb822e021dc89a0cf3fde1.zip | |
push some source location information down through the compiler,
into ContentCache::getBuffer. This allows it to produce
diagnostics on the broken #include line instead of without a
location.
llvm-svn: 101939
Diffstat (limited to 'clang/test/Lexer')
| -rw-r--r-- | clang/test/Lexer/utf-16.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/Lexer/utf-16.c b/clang/test/Lexer/utf-16.c index 7c14e3932be..2b313e49fd2 100644 --- a/clang/test/Lexer/utf-16.c +++ b/clang/test/Lexer/utf-16.c @@ -1,4 +1,6 @@ -// RUN: not %clang -xc %s.txt -fsyntax-only 2>&1 | grep 'UTF-16 (LE) byte order mark detected' +// RUN: not %clang %s -fsyntax-only -verify // rdar://7876588 -// This test verifies that clang gives a decent error for UTF-16 source files.
\ No newline at end of file +// This test verifies that clang gives a decent error for UTF-16 source files. + +#include "utf-16.c.txt" // expected-error {{UTF-16 (LE) byte order mark detected}} |

