diff options
Diffstat (limited to 'test/Analysis/Stats/objc-method-coverage.m')
-rw-r--r-- | test/Analysis/Stats/objc-method-coverage.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Analysis/Stats/objc-method-coverage.m b/test/Analysis/Stats/objc-method-coverage.m new file mode 100644 index 0000000000..cb66bff19b --- /dev/null +++ b/test/Analysis/Stats/objc-method-coverage.m @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-stats -fblocks %s 2>&1 | FileCheck %s +@interface I +int f() { + return 0; +} +@end + +@implementation I ++ (void *)ff{ + return (void*)0; +} +@end + +// CHECK: ... Statistics Collected ... +// CHECK: 2 AnalysisConsumer - The # of functions and blocks analyzed (as top level with inlining turned on). +// CHECK: 100 AnalysisConsumer - The % of reachable basic blocks.
\ No newline at end of file |