summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/html_diagnostics/relevant_lines/multiline_func_def.c
blob: 35158a46868ca6f1d2d09ac64f32d66745ab15ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int f(
    int coin,
    int paramA,
    int paramB) {
  if (coin) {
    int *x = 0;
    return *x;
  } else {
    return 0;
  }
}

// RUN: rm -rf %t.output
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};
OpenPOWER on IntegriCloud