aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/html_diagnostics/relevant_lines/goto.c
blob: fc90f1334f0766e4779a7b8e04e436880fbfcac4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
int goto_test(int input) {
  int *p = 0;
  if (input)
    goto mylabel;
  return 0;
mylabel:
  return *p;
}

// 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": {"1": 1,  "2": 1, "3": 1, "4": 1, "6": 1, "7": 1}};