1#include "getcursor-preamble.h"
2
3// RUN: c-index-test \
4// RUN:    -cursor-at=%S/getcursor-preamble.h:2:10 \
5// RUN:    -cursor-at=%S/getcursor-preamble.h:3:9 \
6// RUN:    -cursor-at=%S/getcursor-preamble.h:4:6 \
7// RUN:    -cursor-at=%S/getcursor-preamble.h:5:8 \
8// RUN:    -cursor-at=%S/getcursor-preamble.h:7:7 \
9// RUN:             %s | FileCheck %s
10
11// RUN: env CINDEXTEST_EDITING=1 c-index-test \
12// RUN:    -cursor-at=%S/getcursor-preamble.h:2:10 \
13// RUN:    -cursor-at=%S/getcursor-preamble.h:3:9 \
14// RUN:    -cursor-at=%S/getcursor-preamble.h:4:6 \
15// RUN:    -cursor-at=%S/getcursor-preamble.h:5:8 \
16// RUN:    -cursor-at=%S/getcursor-preamble.h:7:7 \
17// RUN:             %s | FileCheck %s
18
19// CHECK: StructDecl=AA:2:10
20// CHECK: FieldDecl=x:3:9
21// CHECK: ObjCIvarDecl=aa:4:5
22// CHECK: ObjCIvarDecl=var:5:7
23// CHECK: ObjCInstanceMethodDecl=foo:7:6
24