summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/eof-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/eof-file.c')
-rw-r--r--clang/test/Lexer/eof-file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Lexer/eof-file.c b/clang/test/Lexer/eof-file.c
new file mode 100644
index 00000000000..43c300c04c9
--- /dev/null
+++ b/clang/test/Lexer/eof-file.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-error@+1{{expected expression}} expected-error@+1{{expected ';'}}
+char c = \ \ No newline at end of file
OpenPOWER on IntegriCloud