xref: /llvm-project/clang/test/Analysis/html_diagnostics/relevant_lines/notexecutedlines.c (revision e4d242768aefabc0091dd01fabecaffbc2b6984b)

f(void)1 int f(void) {
2   int zzz = 200;
3   zzz += 100;
4   return 0;
5 }
6 
7 // Show line with the warning even if it wasn't executed (e.g. warning given
8 // by path-insensitive analysis).
9 // RUN: rm -rf %t.output
10 // RUN: %clang_analyze_cc1 -analyzer-checker=core,deadcode -analyzer-output html -o %t.output %s
11 // RUN: cat %t.output/* | FileCheck %s --match-full-lines
12 // CHECK: var relevant_lines = {"1": {"3": 1}};
13