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