| 1 | #include "header.h" |
|---|---|
| 2 | |
| 3 | int f(int coin) { |
| 4 | if (coin) { |
| 5 | int *x = 0; |
| 6 | return *x; |
| 7 | } else { |
| 8 | return 0; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | int v(int coin) { |
| 13 | return coin; |
| 14 | } |
| 15 | |
| 16 | // RUN: rm -rf %t.output |
| 17 | // RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s |
| 18 | // RUN: cat %t.output/* | FileCheck %s --match-full-lines |
| 19 | // CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}}; |
| 20 |