xref: /minix3/external/bsd/llvm/dist/clang/test/Index/getcursor-preamble.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc#include "getcursor-preamble.h"
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc// RUN: c-index-test \
4*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:2:10 \
5*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:3:9 \
6*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:4:6 \
7*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:5:8 \
8*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:7:7 \
9*f4a2713aSLionel Sambuc// RUN:             %s | FileCheck %s
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambuc// RUN: env CINDEXTEST_EDITING=1 c-index-test \
12*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:2:10 \
13*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:3:9 \
14*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:4:6 \
15*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:5:8 \
16*f4a2713aSLionel Sambuc// RUN:    -cursor-at=%S/getcursor-preamble.h:7:7 \
17*f4a2713aSLionel Sambuc// RUN:             %s | FileCheck %s
18*f4a2713aSLionel Sambuc
19*f4a2713aSLionel Sambuc// CHECK: StructDecl=AA:2:10
20*f4a2713aSLionel Sambuc// CHECK: FieldDecl=x:3:9
21*f4a2713aSLionel Sambuc// CHECK: ObjCIvarDecl=aa:4:5
22*f4a2713aSLionel Sambuc// CHECK: ObjCIvarDecl=var:5:7
23*f4a2713aSLionel Sambuc// CHECK: ObjCInstanceMethodDecl=foo:7:6
24