summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/line-directive.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-04 16:16:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-04 16:16:58 +0000
commit925213b0fa3f9bbbe949326bb89a8d774c05994b (patch)
tree5de754b11dc2a3f49f4f5017b05ac73b4cfdc656 /clang/test/Preprocessor/line-directive.c
parent18ce7e476128320cd8689090025af054bfe900f5 (diff)
downloadbcm5719-llvm-925213b0fa3f9bbbe949326bb89a8d774c05994b.tar.gz
bcm5719-llvm-925213b0fa3f9bbbe949326bb89a8d774c05994b.zip
Add 'not' to commands that are expected to fail.
This is at least good documentation, but also opens the possibility of using pipefail. llvm-svn: 185652
Diffstat (limited to 'clang/test/Preprocessor/line-directive.c')
-rw-r--r--clang/test/Preprocessor/line-directive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Preprocessor/line-directive.c b/clang/test/Preprocessor/line-directive.c
index ea0a36fca35..0dd658f7f1a 100644
--- a/clang/test/Preprocessor/line-directive.c
+++ b/clang/test/Preprocessor/line-directive.c
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
-// RUN: %clang_cc1 -E %s 2>&1 | grep 'blonk.c:92:2: error: ABC'
-// RUN: %clang_cc1 -E %s 2>&1 | grep 'blonk.c:93:2: error: DEF'
+// RUN: not %clang_cc1 -E %s 2>&1 | grep 'blonk.c:92:2: error: ABC'
+// RUN: not %clang_cc1 -E %s 2>&1 | grep 'blonk.c:93:2: error: DEF'
#line 'a' // expected-error {{#line directive requires a positive integer argument}}
#line 0 // expected-warning {{#line directive with zero argument is a GNU extension}}
OpenPOWER on IntegriCloud