150
|
1 // RUN: %clang_analyze_cc1 -fblocks -analyzer-display-progress %s 2>&1 | FileCheck %s
|
|
2
|
|
3 #include "Inputs/system-header-simulator-objc.h"
|
|
4
|
|
5 static void f() {}
|
|
6
|
|
7 @interface I: NSObject
|
|
8 -(void)instanceMethod:(int)arg1 with:(int)arg2;
|
|
9 +(void)classMethod;
|
|
10 @end
|
|
11
|
|
12 @implementation I
|
|
13 -(void)instanceMethod:(int)arg1 with:(int)arg2 {}
|
|
14 +(void)classMethod {}
|
|
15 @end
|
|
16
|
|
17 void g(I *i, int x, int y) {
|
|
18 [I classMethod];
|
|
19 [i instanceMethod: x with: y];
|
|
20
|
|
21 void (^block)(void);
|
|
22 block = ^{};
|
|
23 block();
|
|
24 }
|
|
25
|
|
26 // CHECK: analyzer-display-progress.m f
|
|
27 // CHECK: analyzer-display-progress.m -[I instanceMethod:with:]
|
|
28 // CHECK: analyzer-display-progress.m +[I classMethod]
|
|
29 // CHECK: analyzer-display-progress.m g
|
|
30 // CHECK: analyzer-display-progress.m block (line: 22, col: 11)
|