blob: 8d0b3d6d5679b20e2ca949aa5d800a25bce31cf6 [file] [log] [blame]
Dominic Chen184c6242017-03-03 18:02:02 +00001// RUN: %clang_analyze_cc1 -fblocks -analyzer-display-progress %s 2>&1 | FileCheck %s
Artem Dergachev6a76a162016-08-08 16:01:02 +00002
3#include "Inputs/system-header-simulator-objc.h"
4
5static 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
17void 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)