Revise -Wnewline-eof test per feedback from Dmitri.

llvm-svn: 189113
This commit is contained in:
Jordan Rose 2013-08-23 16:12:49 +00:00
parent 25284cc95b
commit 9217aa3b15
1 changed files with 6 additions and 6 deletions

View File

@ -1,12 +1,12 @@
// RUN: %clang -fsyntax-only -Wnewline-eof -verify %s
// RUN: %clang -fsyntax-only -pedantic -verify %s
// RUN: %clang -fsyntax-only -x c++ -std=c++03 -pedantic -verify %s
// RUN: %clang -fsyntax-only -Wnewline-eof %s 2>&1 | FileCheck %s
// RUN: %clang_cc1 -fsyntax-only -Wnewline-eof -verify %s
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
// RUN: %clang_cc1 -fsyntax-only -x c++ -std=c++03 -pedantic -verify %s
// RUN: %clang_cc1 -fsyntax-only -Wnewline-eof %s 2>&1 | FileCheck %s
// rdar://9133072
// In C++11 mode, this is allowed, so don't warn in pedantic mode.
// RUN: %clang -fsyntax-only -x c++ -std=c++11 -Wnewline-eof -verify %s
// RUN: %clang -fsyntax-only -x c++ -std=c++11 -pedantic %s
// RUN: %clang_cc1 -fsyntax-only -x c++ -std=c++11 -Wnewline-eof -verify %s
// RUN: %clang_cc1 -fsyntax-only -x c++ -std=c++11 -Werror -pedantic %s
// Make sure the diagnostic shows up properly at the end of the last line.
// CHECK: newline-eof.c:[[@LINE+3]]:63