aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Preprocessor/_Pragma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Preprocessor/_Pragma.c b/test/Preprocessor/_Pragma.c
index 44eda5f0b9..d449dc08b6 100644
--- a/test/Preprocessor/_Pragma.c
+++ b/test/Preprocessor/_Pragma.c
@@ -1,4 +1,4 @@
-// RUN: clang-cc %s -E 2>&1 | grep 'system_header ignored in main file'
+// RUN: clang-cc %s -E -verify
-_Pragma ("GCC system_header")
+_Pragma ("GCC system_header") // expected-warning {{system_header ignored in main file}}