summaryrefslogtreecommitdiff
path: root/clang/test/Lexer/newline-eof-c++11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/newline-eof-c++11.cpp')
-rw-r--r--clang/test/Lexer/newline-eof-c++11.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Lexer/newline-eof-c++11.cpp b/clang/test/Lexer/newline-eof-c++11.cpp
new file mode 100644
index 0000000..3c45f28
--- /dev/null
+++ b/clang/test/Lexer/newline-eof-c++11.cpp
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wnewline-eof -verify %s
+
+// The following line isn't terminated, don't fix it.
+void foo() {} \ No newline at end of file