r372685 - Revert "[static analyzer][test] Test directly that driver sets D__clang_analyzer__"
Jan Korous via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 23 20:19:21 PDT 2019
Author: jkorous
Date: Mon Sep 23 20:19:20 2019
New Revision: 372685
URL: http://llvm.org/viewvc/llvm-project?rev=372685&view=rev
Log:
Revert "[static analyzer][test] Test directly that driver sets D__clang_analyzer__"
This reverts commit c7541903d72765a38808e9973572a8d50c9d94fb.
Modified:
cfe/trunk/test/Analysis/misc-driver.c
Modified: cfe/trunk/test/Analysis/misc-driver.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/misc-driver.c?rev=372685&r1=372684&r2=372685&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/misc-driver.c (original)
+++ cfe/trunk/test/Analysis/misc-driver.c Mon Sep 23 20:19:20 2019
@@ -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
More information about the cfe-commits
mailing list