Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeCompletion / enum-switch-case.cpp
blobe80404fcf6159fe3a7dc998ef1e004ca3b69d966
1 namespace N {
2 enum Color {
3 Red,
4 Orange,
5 Yellow,
6 Green,
7 Blue,
8 Indigo,
9 Violet
13 void test(enum N::Color color) {
14 switch (color) {
15 case N::Red:
16 break;
18 case N::Yellow:
19 break;
21 case
22 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
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