[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / clang / test / CodeCompletion / enum-switch-case-qualified.cpp
blobac279eddaddfdd2467f854a34c022ccd49675eb5
1 namespace M {
3 namespace N {
4 struct C {
5 enum Color {
6 Red,
7 Orange,
8 Yellow,
9 Green,
10 Blue,
11 Indigo,
12 Violet
19 namespace M {
21 void test(enum N::C::Color color) {
22 switch (color) {
23 case
24 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
25 // CHECK-CC1: Blue : [#M::N::C::Color#]N::C::Blue
26 // CHECK-CC1-NEXT: Green : [#M::N::C::Color#]N::C::Green
27 // CHECK-CC1-NEXT: Indigo : [#M::N::C::Color#]N::C::Indigo
28 // CHECK-CC1-NEXT: Orange : [#M::N::C::Color#]N::C::Orange
29 // CHECK-CC1-NEXT: Red : [#M::N::C::Color#]N::C::Red
30 // CHECK-CC1-NEXT: Violet : [#M::N::C::Color#]N::C::Violet
31 // CHECK-CC1: Yellow : [#M::N::C::Color#]N::C::Yellow