Clang Project

clang_source_code/test/Analysis/html_diagnostics/relevant_lines/simple_conditional.c
1int f(int coin) {
2  if (coin) {
3    int *x = 0;
4    return *x;
5  } else {
6    return 0;
7  }
8}
9
10// RUN: rm -rf %t.output
11// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
12// RUN: cat %t.output/* | FileCheck %s --match-full-lines
13// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1}};
14