Clang Project

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