Home | History | Annotate | Download | only in Index
      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:9:9 \
      5 // RUN:              -cursor-at=%S/get-cursor-macro-args.h:9:22 \
      6 // RUN:              -cursor-at=%S/get-cursor-macro-args.h:15:12 \
      7 // RUN:              -cursor-at=%S/get-cursor-macro-args.h:15:20 \
      8 // RUN:       %s -include %S/get-cursor-macro-args.h | FileCheck %s
      9 
     10 // Test with PCH
     11 // RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/get-cursor-macro-args.h
     12 // RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \
     13 // RUN:              -cursor-at=%S/get-cursor-macro-args.h:9:21 \
     14 // RUN:              -cursor-at=%S/get-cursor-macro-args.h:9:9 \
     15 // RUN:              -cursor-at=%S/get-cursor-macro-args.h:9:22 \
     16 // RUN:              -cursor-at=%S/get-cursor-macro-args.h:15:12 \
     17 // RUN:              -cursor-at=%S/get-cursor-macro-args.h:15:20 \
     18 // RUN:       %s -include-pch %t.pch | FileCheck %s
     19 
     20 // CHECK:      ObjCClassRef=MyClass:1:12
     21 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
     22 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
     23 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
     24 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
     25 // CHECK-NEXT: ObjCClassRef=MyClass:1:12
     26