2011-08-17 08:31:25 +08:00
|
|
|
// Test without PCH
|
|
|
|
// RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:9:21 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:12 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:20 \
|
2012-10-02 07:39:44 +08:00
|
|
|
// RUN: %s -include %S/get-cursor-macro-args.h | FileCheck %s
|
2011-08-17 08:31:25 +08:00
|
|
|
|
|
|
|
// Test with PCH
|
2012-10-02 08:11:53 +08:00
|
|
|
// RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/get-cursor-macro-args.h
|
2011-08-17 08:31:25 +08:00
|
|
|
// RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:9:21 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:12 \
|
|
|
|
// RUN: -cursor-at=%S/get-cursor-macro-args.h:15:20 \
|
2012-10-02 08:11:53 +08:00
|
|
|
// RUN: %s -include-pch %t.pch | FileCheck %s
|
2011-08-17 08:31:25 +08:00
|
|
|
|
|
|
|
// CHECK: ObjCClassRef=MyClass:1:12
|
2012-03-23 11:33:19 +08:00
|
|
|
// CHECK-NEXT: ObjCMessageExpr=meth:2:8
|
|
|
|
// CHECK-NEXT: ObjCMessageExpr=meth:2:8
|
2011-08-17 08:31:25 +08:00
|
|
|
// CHECK-NEXT: ObjCClassRef=MyClass:1:12
|