summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/html_diagnostics/relevant_lines/notexecutedlines.c
blob: 3c723aa93349e5c6cf8661155de763154d391dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
int f() {
  int zzz = 200;
  zzz += 100;
  return 0;
}

// Show line with the warning even if it wasn't executed (e.g. warning given
// by path-insensitive analysis).
// RUN: rm -rf %t.output
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core,deadcode -analyzer-output html -o %t.output %s
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
// CHECK: var relevant_lines = {"1": {"3": 1}};
OpenPOWER on IntegriCloud