16199f2d1SDouglas Gregor // Note: the run lines follow their respective tests, since line/column 26199f2d1SDouglas Gregor // matter in this test. 36199f2d1SDouglas Gregor 46199f2d1SDouglas Gregor struct StructA { }; 56199f2d1SDouglas Gregor struct StructB { }; 66199f2d1SDouglas Gregor struct StructC { }; 76199f2d1SDouglas Gregor int ValueA; 86199f2d1SDouglas Gregor int ValueB; 96199f2d1SDouglas Gregor f()106199f2d1SDouglas Gregorvoid f() { 116199f2d1SDouglas Gregor 126199f2d1SDouglas Gregor int ValueA = 0; 136199f2d1SDouglas Gregor int StructA = 0; 146199f2d1SDouglas Gregor struct StructB { }; 156199f2d1SDouglas Gregor 166199f2d1SDouglas Gregor struct StructA sa = { }; 176199f2d1SDouglas Gregor } 186199f2d1SDouglas Gregor 1957df3b4bSDouglas Gregor // RUN: c-index-test -code-completion-at=%s:16:3 %s > %t 2057df3b4bSDouglas Gregor // RUN: FileCheck -check-prefix=CHECK-CC1 -input-file=%t %s 216199f2d1SDouglas Gregor // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:16:3 %s | FileCheck -check-prefix=CHECK-CC1 %s 22*0787b322SDouglas Gregor // CHECK-CC1: VarDecl:{ResultType int}{TypedText StructA} (34) 23*0787b322SDouglas Gregor // CHECK-CC1: VarDecl:{ResultType int}{TypedText ValueA} (34) 246199f2d1SDouglas Gregor // CHECK-CC1-NOT: VarDecl:{ResultType int}{TypedText ValueA} (50) 256199f2d1SDouglas Gregor // CHECK-CC1: VarDecl:{ResultType int}{TypedText ValueB} (50) 2657df3b4bSDouglas Gregor // RUN: c-index-test -code-completion-at=%s:16:10 %s > %t 2757df3b4bSDouglas Gregor // RUN: FileCheck -check-prefix=CHECK-CC2 -input-file=%t %s 285fb901deSDouglas Gregor // CHECK-CC2: StructDecl:{TypedText StructA} (50) 295fb901deSDouglas Gregor // CHECK-CC2-NOT: StructDecl:{TypedText StructB} (50) 305fb901deSDouglas Gregor // CHECK-CC2: StructDecl:{TypedText StructC} (50) 3157df3b4bSDouglas Gregor // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:16:10 %s > %t 3257df3b4bSDouglas Gregor // RUN: FileCheck -check-prefix=CHECK-CC2 -input-file=%t %s 33