brintos

brintos / llvm-project-archived public Read only

0
0
Text · 622 B · e80404f Raw
29 lines · cpp
1namespace N {2  enum Color {3    Red,4    Orange,5    Yellow,6    Green,7    Blue,8    Indigo,9    Violet10  };11}12 13void test(enum N::Color color) {14  switch (color) {15  case N::Red:16    break;17    18  case N::Yellow:19    break;20    21  case 22    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s23    // CHECK-CC1: Blue : [#N::Color#]N::Blue24    // CHECK-CC1-NEXT: Green : [#N::Color#]N::Green25    // CHECK-CC1-NEXT: Indigo : [#N::Color#]N::Indigo26    // CHECK-CC1-NEXT: Orange : [#N::Color#]N::Orange27    // CHECK-CC1-NEXT: Violet : [#N::Color#]N::Violet28    29