summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/stats.c')
-rw-r--r--clang/test/Analysis/stats.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Analysis/stats.c b/clang/test/Analysis/stats.c
new file mode 100644
index 0000000..6beadbe
--- /dev/null
+++ b/clang/test/Analysis/stats.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-stats %s 2>&1 | FileCheck %s
+
+void foo() {
+ int x;
+}
+// CHECK: ... Statistics Collected ...
+// CHECK:100 AnalysisConsumer - The % of reachable basic blocks.
+// CHECK:The # of times RemoveDeadBindings is called