diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
| commit | 5e20cdd81c44a443562a09007668ffdf76c455af (patch) | |
| tree | dbbd4047878da71c1a706e26ce05b4e7791b14cc /test/Lexer/eof-number.c | |
| parent | d5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 (diff) | |
Notes
Diffstat (limited to 'test/Lexer/eof-number.c')
| -rw-r--r-- | test/Lexer/eof-number.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Lexer/eof-number.c b/test/Lexer/eof-number.c new file mode 100644 index 000000000000..d97a6fec4b04 --- /dev/null +++ b/test/Lexer/eof-number.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 %s -verify -fsyntax-only -Wnewline-eof +// vim: set binary noeol: + +// This file intentionally ends without a \n on the last line. Make sure your +// editor doesn't add one. + +// expected-error@+2{{unterminated conditional directive}} +// expected-warning@+1{{no newline at end of file}} +#if 0
\ No newline at end of file |
