Douglas Gregor | b9d0ef7 | 2009-09-21 19:57:38 +0000 | [diff] [blame] | 1 | namespace N { |
| 2 | enum Color { |
| 3 | Red, |
| 4 | Orange, |
| 5 | Yellow, |
| 6 | Green, |
| 7 | Blue, |
| 8 | Indigo, |
| 9 | Violet |
| 10 | }; |
| 11 | } |
| 12 | |
| 13 | void test(enum N::Color color) { |
| 14 | switch (color) { |
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 15 | case N::Red: |
| 16 | break; |
| 17 | |
| 18 | case N::Yellow: |
| 19 | break; |
| 20 | |
| 21 | case |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 22 | // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:21:8 %s -o - | FileCheck -check-prefix=CC1 %s |
John McCall | 7c2342d | 2010-03-10 11:27:22 +0000 | [diff] [blame] | 23 | // CHECK-CC1: Blue : [#N::Color#]N::Blue |
| 24 | // CHECK-CC1-NEXT: Green : [#N::Color#]N::Green |
| 25 | // CHECK-CC1-NEXT: Indigo : [#N::Color#]N::Indigo |
| 26 | // CHECK-CC1-NEXT: Orange : [#N::Color#]N::Orange |
| 27 | // CHECK-CC1-NEXT: Violet : [#N::Color#]N::Violet |
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 28 | |