blob: 468a4f979f7c8d4ff8d47262812f822ed400d292 [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
26 // CHECK-NEXT-CC1: Blue : 0 : N::C::Blue
27 // CHECK-NEXT-CC1: Green : 0 : N::C::Green
28 // CHECK-NEXT-CC1: Indigo : 0 : N::C::Indigo
29 // CHECK-NEXT-CC1: Orange : 0 : N::C::Orange
30 // CHECK-NEXT-CC1: Red : 0 : N::C::Red
31 // CHECK-NEXT-CC1: Violet : 0 : N::C::Violet
32 // CHECK-NEXT-CC1: Yellow : 0 : N::C::Yellow
33