2013-03-12 01:48:03 +08:00
|
|
|
// REQUIRES: asserts
|
2012-08-22 05:44:07 +08:00
|
|
|
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-stats -fblocks %s 2>&1 | FileCheck %s
|
2012-04-13 06:36:48 +08:00
|
|
|
@interface I
|
|
|
|
int f() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I
|
|
|
|
+ (void *)ff{
|
|
|
|
return (void*)0;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
// CHECK: ... Statistics Collected ...
|
2012-12-18 04:08:54 +08:00
|
|
|
// CHECK: 2 AnalysisConsumer - The # of functions and blocks analyzed (as top level with inlining turned on).
|
2013-03-12 01:48:03 +08:00
|
|
|
// CHECK: 100 AnalysisConsumer - The % of reachable basic blocks.
|