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