diff options
author | Seth Cantrell <seth.cantrell@gmail.com> | 2012-04-13 01:00:34 +0000 |
---|---|---|
committer | Seth Cantrell <seth.cantrell@gmail.com> | 2012-04-13 01:00:34 +0000 |
commit | 10ac7205ce1801cf5f6d90eb94cf38f37f99f8f3 (patch) | |
tree | 85a6d953ea32805fcd72ea754fed0a762a12116d /clang/test/Lexer/newline-eof-c++11.cpp | |
parent | 8478d76d6482411de023455a2a5abfdbbaa0293f (diff) | |
download | bcm5719-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.cpp | 4 |
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 |