Argyrios Kyrtzidis | 6f5bd2f | 2011-08-17 00:31:25 +0000 | [diff] [blame] | 1 | // 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 Gottesman | 101290b | 2012-10-01 23:39:44 +0000 | [diff] [blame] | 6 | // RUN: %s -include %S/get-cursor-macro-args.h | FileCheck %s |
Argyrios Kyrtzidis | 6f5bd2f | 2011-08-17 00:31:25 +0000 | [diff] [blame] | 7 | |
| 8 | // Test with PCH |
NAKAMURA Takumi | 5d62a7c | 2012-10-02 00:11:53 +0000 | [diff] [blame] | 9 | // RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/get-cursor-macro-args.h |
Argyrios Kyrtzidis | 6f5bd2f | 2011-08-17 00:31:25 +0000 | [diff] [blame] | 10 | // 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 Takumi | 5d62a7c | 2012-10-02 00:11:53 +0000 | [diff] [blame] | 14 | // RUN: %s -include-pch %t.pch | FileCheck %s |
Argyrios Kyrtzidis | 6f5bd2f | 2011-08-17 00:31:25 +0000 | [diff] [blame] | 15 | |
| 16 | // CHECK: ObjCClassRef=MyClass:1:12 |
Argyrios Kyrtzidis | a754a03 | 2012-03-23 03:33:19 +0000 | [diff] [blame] | 17 | // CHECK-NEXT: ObjCMessageExpr=meth:2:8 |
| 18 | // CHECK-NEXT: ObjCMessageExpr=meth:2:8 |
Argyrios Kyrtzidis | 6f5bd2f | 2011-08-17 00:31:25 +0000 | [diff] [blame] | 19 | // CHECK-NEXT: ObjCClassRef=MyClass:1:12 |