xref: /minix3/external/bsd/llvm/dist/clang/test/Analysis/objc-method-coverage.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// REQUIRES: asserts
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-stats -fblocks %s 2>&1 | FileCheck %s
3*f4a2713aSLionel Sambuc@interface I
4*f4a2713aSLionel Sambucint f() {
5*f4a2713aSLionel Sambuc  return 0;
6*f4a2713aSLionel Sambuc}
7*f4a2713aSLionel Sambuc@end
8*f4a2713aSLionel Sambuc
9*f4a2713aSLionel Sambuc@implementation I
10*f4a2713aSLionel Sambuc+ (void *)ff{
11*f4a2713aSLionel Sambuc  return (void*)0;
12*f4a2713aSLionel Sambuc}
13*f4a2713aSLionel Sambuc@end
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel Sambuc// CHECK: ... Statistics Collected ...
16*f4a2713aSLionel Sambuc// CHECK: 2 AnalysisConsumer - The # of functions and blocks analyzed (as top level with inlining turned on).
17*f4a2713aSLionel Sambuc// CHECK: 100 AnalysisConsumer - The % of reachable basic blocks.
18