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 ++++ clang/test/Lexer/newline-eof.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 clang/test/Lexer/newline-eof-c++11.cpp (limited to 'clang/test') 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 diff --git a/clang/test/Lexer/newline-eof.c b/clang/test/Lexer/newline-eof.c index 2f95dc7593c..12087b23708 100644 --- a/clang/test/Lexer/newline-eof.c +++ b/clang/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 -- cgit v1.2.3