summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/newline-eof-c++11.cpp
diff options
context:
space:
mode:
authorSeth Cantrell <seth.cantrell@gmail.com>2012-04-13 01:00:34 +0000
committerSeth Cantrell <seth.cantrell@gmail.com>2012-04-13 01:00:34 +0000
commit10ac7205ce1801cf5f6d90eb94cf38f37f99f8f3 (patch)
tree85a6d953ea32805fcd72ea754fed0a762a12116d /clang/test/Lexer/newline-eof-c++11.cpp
parent8478d76d6482411de023455a2a5abfdbbaa0293f (diff)
downloadbcm5719-llvm-10ac7205ce1801cf5f6d90eb94cf38f37f99f8f3.tar.gz
bcm5719-llvm-10ac7205ce1801cf5f6d90eb94cf38f37f99f8f3.zip
C++11 no longer requires files to end with a newline
llvm-svn: 154643
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 00000000000..3c45f28336f
--- /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
OpenPOWER on IntegriCloud