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