]> granicus.if.org Git - clang/commitdiff
Revert "[static analyzer][test] Test directly that driver sets D__clang_analyzer__"
authorJan Korous <jkorous@apple.com>
Tue, 24 Sep 2019 03:19:20 +0000 (03:19 +0000)
committerJan Korous <jkorous@apple.com>
Tue, 24 Sep 2019 03:19:20 +0000 (03:19 +0000)
This reverts commit c7541903d72765a38808e9973572a8d50c9d94fb.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372685 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/misc-driver.c

index 34408ecb703159bd4d0e5f3aa35946139233965a..f9e7fe373d3c7ced6def97d8a80d084c9075de7f 100644 (file)
@@ -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