aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/line-directive.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/line-directive.c')
-rw-r--r--test/PCH/line-directive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/PCH/line-directive.c b/test/PCH/line-directive.c
index 4710c40d7234..7d59c62763c3 100644
--- a/test/PCH/line-directive.c
+++ b/test/PCH/line-directive.c
@@ -1,9 +1,9 @@
// Test this without pch.
-// RUN: %clang_cc1 -include %S/line-directive.h -fsyntax-only %s 2>&1|grep "25:5"
+// RUN: not %clang_cc1 -include %S/line-directive.h -fsyntax-only %s 2>&1|grep "25:5"
// Test with pch.
// RUN: %clang_cc1 -emit-pch -o %t %S/line-directive.h
-// RUN: %clang_cc1 -include-pch %t -fsyntax-only %s 2>&1|grep "25:5"
+// RUN: not %clang_cc1 -include-pch %t -fsyntax-only %s 2>&1|grep "25:5"
double x; // expected-error{{redefinition of 'x' with a different type}}