diff options
Diffstat (limited to 'clang/test/Lexer/newline-eof.c')
-rw-r--r-- | clang/test/Lexer/newline-eof.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Lexer/newline-eof.c b/clang/test/Lexer/newline-eof.c new file mode 100644 index 0000000..825a266 --- /dev/null +++ b/clang/test/Lexer/newline-eof.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -fsyntax-only -Wnewline-eof -verify %s +// rdar://9133072 + +// The following line isn't terminated, don't fix it. +void foo() {} // expected-warning{{no newline at end of file}}
\ No newline at end of file |