blob: 2677f33f98f27308d3f59acafeb14ab5b3c808db [file] [log] [blame]
Douglas Gregorb9d0ef72009-09-21 19:57:38 +00001namespace N {
2 enum Color {
3 Red,
4 Orange,
5 Yellow,
6 Green,
7 Blue,
8 Indigo,
9 Violet
10 };
11}
12
13void test(enum N::Color color) {
14 switch (color) {
Douglas Gregorb657f112009-09-22 21:11:38 +000015 case N::Red:
16 break;
17
18 case N::Yellow:
19 break;
20
21 case
Daniel Dunbara5728872009-12-15 20:14:24 +000022 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:21:8 %s -o - | FileCheck -check-prefix=CC1 %s
John McCall7c2342d2010-03-10 11:27:22 +000023 // CHECK-CC1: Blue : [#N::Color#]N::Blue
24 // CHECK-CC1-NEXT: Green : [#N::Color#]N::Green
25 // CHECK-CC1-NEXT: Indigo : [#N::Color#]N::Indigo
26 // CHECK-CC1-NEXT: Orange : [#N::Color#]N::Orange
27 // CHECK-CC1-NEXT: Violet : [#N::Color#]N::Violet
Douglas Gregorb657f112009-09-22 21:11:38 +000028