blob: 3a010a83dee5440e984af5855a490cfc7d333ca0 [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 Dunbar4fcfde42009-11-08 01:45:36 +000022 // RUN: clang-cc -fsyntax-only -code-completion-at=%s:21:8 %s -o - | FileCheck -check-prefix=CC1 %s
Douglas Gregorb657f112009-09-22 21:11:38 +000023 // CHECK-CC1: Blue : 0 : N::Blue
Douglas Gregor119fa682009-09-24 22:57:42 +000024 // CHECK-CC1-NEXT: Green : 0 : N::Green
25 // CHECK-CC1-NEXT: Indigo : 0 : N::Indigo
26 // CHECK-CC1-NEXT: Orange : 0 : N::Orange
27 // CHECK-CC1-NEXT: Violet : 0 : N::Violet
Douglas Gregorb657f112009-09-22 21:11:38 +000028