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 | d55522287e217746996238c6ab206babeec336d5 (patch) | |
tree | bb7aa551372132db8ec48737e6ecb9d638616a79 /test | |
parent | 2c39d71bb7cefdfe6116fa52454f3b3dc5abd517 (diff) |
C++11 no longer requires files to end with a newline
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Lexer/newline-eof-c++11.cpp | 4 | ||||
-rw-r--r-- | test/Lexer/newline-eof.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/test/Lexer/newline-eof-c++11.cpp b/test/Lexer/newline-eof-c++11.cpp new file mode 100644 index 0000000000..3c45f28336 --- /dev/null +++ b/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 diff --git a/test/Lexer/newline-eof.c b/test/Lexer/newline-eof.c index 2f95dc7593..12087b2370 100644 --- a/test/Lexer/newline-eof.c +++ b/test/Lexer/newline-eof.c @@ -1,5 +1,5 @@ -// RUN: %clang -fsyntax-only -Wnewline-eof -verify %s +// RUN: %clang -cc1 -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 +void foo() {} // expected-warning{{no newline at end of file}}
\ No newline at end of file |