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