aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-08-23 16:12:49 +0000
committerJordan Rose <jordan_rose@apple.com>2013-08-23 16:12:49 +0000
commitb2ae804b5d58d4cc4991d78b8d1d25fc6cc14d78 (patch)
tree20090d96d24280f49425949570d3bf8ea8a4a612 /test/Lexer
parent344472ebeded2fca2ed5013b9e87f81d09bfa908 (diff)
downloadclang-b2ae804b5d58d4cc4991d78b8d1d25fc6cc14d78.tar.gz
Revise -Wnewline-eof test per feedback from Dmitri.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r--test/Lexer/newline-eof.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Lexer/newline-eof.c b/test/Lexer/newline-eof.c
index d762519aaa..340d9de8d3 100644
--- a/test/Lexer/newline-eof.c
+++ b/test/Lexer/newline-eof.c
@@ -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