xref: /llvm-project/clang/test/CodeCompletion/enum-switch-case.c (revision d328d57c39ced4c301724db063fe0a6d7db8654b)
1 // RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s &&
2 // RUN: true
3 
4 enum Color {
5   Red,
6   Orange,
7   Yellow,
8   Green,
9   Blue,
10   Indigo,
11   Violet
12 };
13 
14 void test(enum Color color) {
15   switch (color) {
16     case Red:
17       break;
18 
19     case Yellow:
20       break;
21 
22     // CHECK-CC1: Blue : 0
23     // CHECK-NEXT-CC1: Green : 0
24     // CHECK-NEXT-CC1: Indigo : 0
25     // CHECK-NEXT-CC1: Orange : 0
26     // CHECK-NEXT-CC1: Violet : 0
27     case
28