summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/html_diagnostics/relevant_lines/unused_header.c
blob: 4b77c651eddd9fdf52b47b2ece07bc1cdeb5bf17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "header.h"

int f(int coin) {
  if (coin) {
    int *x = 0;
    return *x;
  } else {
    return 0;
  }
}

int v(int coin) {
  return coin;
}

// 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": {"3": 1, "4": 1, "5": 1, "6": 1}};
OpenPOWER on IntegriCloud