summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Korous <jkorous@apple.com>2019-09-24 03:19:20 +0000
committerJan Korous <jkorous@apple.com>2019-09-24 03:19:20 +0000
commitf408c35b1716e255634a2a2e9b3366b47eb7b3d7 (patch)
tree58386ddc255135c02997034ccede374b33b82ebe /test
parentafd19badb6e7b38a8cbf21977e72cfaa474e48c5 (diff)
downloadclang-f408c35b1716e255634a2a2e9b3366b47eb7b3d7.tar.gz
Revert "[static analyzer][test] Test directly that driver sets D__clang_analyzer__"
This reverts commit c7541903d72765a38808e9973572a8d50c9d94fb. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/misc-driver.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Analysis/misc-driver.c b/test/Analysis/misc-driver.c
index 34408ecb70..f9e7fe373d 100644
--- a/test/Analysis/misc-driver.c
+++ b/test/Analysis/misc-driver.c
@@ -1,2 +1,5 @@
-// RUN: %clang -### --analyze %s 2>&1 | FileCheck %s
-// CHECK: -D__clang_analyzer__
+// RUN: %clang --analyze %s
+
+#ifndef __clang_analyzer__
+#error __clang_analyzer__ not defined
+#endif