11 void test(enum Color color
) {
28 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:10 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
30 // CHECK-CC1-NEXT: Green
31 // CHECK-CC1-NEXT: Indigo
32 // CHECK-CC1-NEXT: Orange
33 // CHECK-CC1-NEXT: Violet
35 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:25:10 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
36 // CHECK-CC2: COMPLETION: Blue : [#enum Color#]Blue
37 // CHECK-CC2-NEXT: COMPLETION: c2 : [#unsigned int#]c2
38 // CHECK-CC2-NEXT: COMPLETION: color : [#enum Color#]color
39 // CHECK-CC2-NEXT: COMPLETION: Green : [#enum Color#]Green
40 // CHECK-CC2-NEXT: COMPLETION: Indigo : [#enum Color#]Indigo
41 // CHECK-CC2-NEXT: COMPLETION: Orange : [#enum Color#]Orange
42 // CHECK-CC2-NEXT: COMPLETION: Red : [#enum Color#]Red
43 // CHECK-CC2-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
44 // CHECK-CC2-NEXT: COMPLETION: Violet : [#enum Color#]Violet
45 // CHECK-CC2-NEXT: COMPLETION: Yellow : [#enum Color#]Yellow