blob: 15e50fdf484353b43597c71be466f84823dde422 [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
22 // RUN: clang-cc -fsyntax-only -code-completion-at=%s:21:8 %s -o - | FileCheck -check-prefix=CC1 %s &&
23 // CHECK-CC1: Blue : 0 : N::Blue
24 // CHECK-NEXT-CC1: Green : 0 : N::Green
25 // CHECK-NEXT-CC1: Indigo : 0 : N::Indigo
26 // CHECK-NEXT-CC1: Orange : 0 : N::Orange
27 // CHECK-NEXT-CC1: Violet : 0 : N::Violet
28
29 // RUN: true