blob: 223aca8b9323f09a3be2d4606f47fda119a7beef [file] [log] [blame]
Douglas Gregorb9d0ef72009-09-21 19:57:38 +00001namespace 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) {
Douglas Gregorb657f112009-09-22 21:11:38 +000023 case
24 // RUN: clang-cc -fsyntax-only -code-completion-at=%s:23:8 %s -o - | FileCheck -check-prefix=CC1 %s &&
25 // RUN: true
Douglas Gregor119fa682009-09-24 22:57:42 +000026 // CHECK-CC1: Blue : 0 : N::C::Blue
27 // CHECK-CC1-NEXT: Green : 0 : N::C::Green
28 // CHECK-CC1-NEXT: Indigo : 0 : N::C::Indigo
29 // CHECK-CC1-NEXT: Orange : 0 : N::C::Orange
30 // CHECK-CC1-NEXT: Red : 0 : N::C::Red
31 // CHECK-CC1-NEXT: Violet : 0 : N::C::Violet
32 // CHECK-CC1: Yellow : 0 : N::C::Yellow
Douglas Gregorb657f112009-09-22 21:11:38 +000033