1 | @interface I |
---|---|
2 | - (int)func; |
3 | @end |
4 | |
5 | @implementation I |
6 | - (int)func:(int *)param { |
7 | return *param; |
8 | } |
9 | @end |
10 | |
11 | void foo(I *i) { |
12 | int *x = 0; |
13 | [i func:x]; |
14 | } |
15 | |
16 | // RUN: rm -rf %t.output |
17 | // RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output -Wno-objc-root-class %s |
18 | // RUN: cat %t.output/* | FileCheck %s |
19 | // CHECK: var relevant_lines = {"1": {"6": 1, "7": 1, "11": 1, "12": 1, "13": 1}}; |
20 |