mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 17:26:35 +00:00

without prototypes. This patch converts the function signatures to have a prototype for the situations where the test is not specific to K&R C declarations. e.g., void func(); becomes void func(void); This is the ninth batch of tests being updated (there are a significant number of other tests left to be updated).
18 lines
442 B
Objective-C
18 lines
442 B
Objective-C
// REQUIRES: asserts
|
|
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-stats -fblocks %s 2>&1 | FileCheck %s
|
|
@interface I
|
|
int f(void) {
|
|
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.
|