blob: fc1b0ea07578efce1fee5b4b6688136533928fd3 [file] [log] [blame]
Douglas Gregorf2510672009-09-21 19:57:38 +00001// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s &&
2// RUN: true
3
4namespace M {
5
6namespace N {
7 struct C {
8 enum Color {
9 Red,
10 Orange,
11 Yellow,
12 Green,
13 Blue,
14 Indigo,
15 Violet
16 };
17 };
18}
19
20}
21
22namespace M {
23
24void test(enum N::C::Color color) {
25 switch (color) {
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 case