diff options
Diffstat (limited to 'test/Lexer/eof-string.c')
-rw-r--r-- | test/Lexer/eof-string.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Lexer/eof-string.c b/test/Lexer/eof-string.c new file mode 100644 index 000000000000..e1a60a475055 --- /dev/null +++ b/test/Lexer/eof-string.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 %s -verify -fsyntax-only +// vim: set binary noeol: + +// This file intentionally ends without a \n on the last line. Make sure your +// editor doesn't add one. + +// expected-warning@+1{{missing terminating '"' character}} expected-error@+1{{expected expression}} expected-error@+1{{expected ';'}} +char c = "\
\ No newline at end of file |