From 10ac7205ce1801cf5f6d90eb94cf38f37f99f8f3 Mon Sep 17 00:00:00 2001 From: Seth Cantrell Date: Fri, 13 Apr 2012 01:00:34 +0000 Subject: C++11 no longer requires files to end with a newline llvm-svn: 154643 --- clang/test/Lexer/newline-eof-c++11.cpp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 clang/test/Lexer/newline-eof-c++11.cpp (limited to 'clang/test/Lexer/newline-eof-c++11.cpp') 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 -- cgit v1.2.3