]> granicus.if.org Git - clang/commitdiff
[static analyzer][test] Test directly that driver sets D__clang_analyzer__
authorJan Korous <jkorous@apple.com>
Tue, 24 Sep 2019 02:06:59 +0000 (02:06 +0000)
committerJan Korous <jkorous@apple.com>
Tue, 24 Sep 2019 02:06:59 +0000 (02:06 +0000)
Follow-up to fbd13570b0d

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

test/Analysis/misc-driver.c

index f9e7fe373d3c7ced6def97d8a80d084c9075de7f..34408ecb703159bd4d0e5f3aa35946139233965a 100644 (file)
@@ -1,5 +1,2 @@
-// RUN: %clang --analyze %s
-
-#ifndef __clang_analyzer__
-#error __clang_analyzer__ not defined
-#endif
+// RUN: %clang -### --analyze %s 2>&1 | FileCheck %s
+// CHECK: -D__clang_analyzer__