Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / html_diagnostics / relevant_lines / switch_default.c
blobb14e3f9fa8fd6ff438074467fbec667125630328
1 enum E {
2 A, B, C
3 };
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;
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}};