[LLVM][NVPTX] Add support for griddepcontrol instruction (#123511)
[llvm-project.git] / clang / test / Analysis / html_diagnostics / relevant_lines / switch.c
blob72a2ce1786c29ce61230e5dfdf35a9bcb3d64dcc
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 case C:
13 return *x;
17 // RUN: rm -rf %t.output
18 // RUN: %clang_analyze_cc1 -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}};