| 1 | enum E { |
|---|---|
| 2 | A, B, C |
| 3 | }; |
| 4 | |
| 5 | int f(enum E input) { |
| 6 | int *x = 0; |
| 7 | switch (input) { |
| 8 | case A: |
| 9 | return 1; |
| 10 | case B: |
| 11 | return 0; |
| 12 | default: |
| 13 | return *x; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | // RUN: rm -rf %t.output |
| 18 | // RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s |
| 19 | // RUN: cat %t.output/* | FileCheck %s --match-full-lines |
| 20 | // CHECK: var relevant_lines = {"1": {"5": 1, "6": 1, "7": 1, "12": 1, "13": 1}}; |
| 21 |