1struct _MyS {
2  int foo;
3} MyS;
4
5struct _MyS ww;
6
7int x, y;
8
9// RUN: c-index-test -cursor-at=%s:1:9 \
10// RUN:              -cursor-at=%s:2:9 \
11// RUN:              -cursor-at=%s:5:9 \
12// RUN:              -cursor-at=%s:7:5 \
13// RUN:              -cursor-at=%s:7:8 \
14// RUN:       %s | FileCheck %s
15
16// CHECK: StructDecl=_MyS:1:8 (Definition)
17// CHECK: FieldDecl=foo:2:7 (Definition)
18// CHECK: TypeRef=struct _MyS:1:8
19// CHECK: VarDecl=x:7:5
20// CHECK: VarDecl=y:7:8
21