brintos

brintos / llvm-project-archived public Read only

0
0
Text · 835 B · 713e24f Raw
23 lines · c
1// Note: the run lines follow their respective tests, since line/column2// matter in this test.3 4enum __attribute__((deprecated)) Color {5  Color_Red = 17,6  Color_Green,7  Color_Blue8};9int Greeby();10void f(enum Color color) {11  switch (color) {12  case Red:13  }14}15 16// RUN: c-index-test -code-completion-at=%s:11:1 %s | FileCheck -check-prefix=CHECK-CC1 %s17// CHECK-CC1: EnumConstantDecl:{ResultType enum Color}{TypedText Color_Red} (65) (deprecated)18 19// RUN: c-index-test -code-completion-at=%s:12:8 %s | FileCheck -check-prefix=CHECK-CC2 %s20// CHECK-CC2: EnumConstantDecl:{ResultType enum Color}{TypedText Color_Blue} (7) (deprecated)21// CHECK-CC2-NEXT: EnumConstantDecl:{ResultType enum Color}{TypedText Color_Green} (7) (deprecated)22// CHECK-CC2-NEXT: EnumConstantDecl:{ResultType enum Color}{TypedText Color_Red} (7) (deprecated)23