aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/newline-eof.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/newline-eof.c')
-rw-r--r--test/Lexer/newline-eof.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Lexer/newline-eof.c b/test/Lexer/newline-eof.c
new file mode 100644
index 000000000000..2f95dc7593c7
--- /dev/null
+++ b/test/Lexer/newline-eof.c
@@ -0,0 +1,5 @@
+// RUN: %clang -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