blob: a439419b76ec9ffb9f2f4cd8596d10bfd131e827 [file] [log] [blame]
Argyrios Kyrtzidis6f5bd2f2011-08-17 00:31:25 +00001// Test without PCH
2// RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
3// RUN: -cursor-at=%S/get-cursor-macro-args.h:9:21 \
4// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:12 \
5// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:20 \
Michael Gottesman101290b2012-10-01 23:39:44 +00006// RUN: %s -include %S/get-cursor-macro-args.h | FileCheck %s
Argyrios Kyrtzidis6f5bd2f2011-08-17 00:31:25 +00007
8// Test with PCH
NAKAMURA Takumi5d62a7c2012-10-02 00:11:53 +00009// RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/get-cursor-macro-args.h
Argyrios Kyrtzidis6f5bd2f2011-08-17 00:31:25 +000010// RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
11// RUN: -cursor-at=%S/get-cursor-macro-args.h:9:21 \
12// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:12 \
13// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:20 \
NAKAMURA Takumi5d62a7c2012-10-02 00:11:53 +000014// RUN: %s -include-pch %t.pch | FileCheck %s
Argyrios Kyrtzidis6f5bd2f2011-08-17 00:31:25 +000015
16// CHECK: ObjCClassRef=MyClass:1:12
Argyrios Kyrtzidisa754a032012-03-23 03:33:19 +000017// CHECK-NEXT: ObjCMessageExpr=meth:2:8
18// CHECK-NEXT: ObjCMessageExpr=meth:2:8
Argyrios Kyrtzidis6f5bd2f2011-08-17 00:31:25 +000019// CHECK-NEXT: ObjCClassRef=MyClass:1:12