1namespace M {
2
3namespace N {
4  struct C {
5    enum Color {
6      Red,
7      Orange,
8      Yellow,
9      Green,
10      Blue,
11      Indigo,
12      Violet
13    };
14  };
15}
16
17}
18
19namespace M {
20
21void test(enum N::C::Color color) {
22  switch (color) {
23  case
24    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:23:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
25    // CHECK-CC1: Blue : [#M::N::C::Color#]N::C::Blue
26    // CHECK-CC1-NEXT: Green : [#M::N::C::Color#]N::C::Green
27    // CHECK-CC1-NEXT: Indigo : [#M::N::C::Color#]N::C::Indigo
28    // CHECK-CC1-NEXT: Orange : [#M::N::C::Color#]N::C::Orange
29    // CHECK-CC1-NEXT: Red : [#M::N::C::Color#]N::C::Red
30    // CHECK-CC1-NEXT: Violet : [#M::N::C::Color#]N::C::Violet
31    // CHECK-CC1: Yellow : [#M::N::C::Color#]N::C::Yellow
32
33