summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/html_diagnostics/relevant_lines/objcmethods.m
blob: 41a4c1d2e0973aadaa27c573f77788346d109334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@interface I
- (int)func;
@end

@implementation I
- (int)func:(int *)param {
  return *param;
}
@end

void foo(I *i) {
  int *x = 0;
  [i func:x];
}

// RUN: rm -rf %t.output
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output -Wno-objc-root-class %s
// RUN: cat %t.output/* | FileCheck %s
// CHECK: var relevant_lines = {"1": {"6": 1, "7": 1, "11": 1, "12": 1, "13": 1}};
OpenPOWER on IntegriCloud