brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · d68384c Raw
44 lines · c
1 2 3 4typedef int T;5void OBSCURE(func)(int x) {6  OBSCURE(T) DECORATION value;7}8 9 10// Without PCH11// RUN: c-index-test -cursor-at=%s.h:1:11 \12// RUN:              -cursor-at=%s.h:2:14 \13// RUN:              -cursor-at=%s.h:4:5 \14// RUN:              -cursor-at=%s.h:5:5 \15// RUN:              -cursor-at=%s.h:5:14 \16// RUN:              -cursor-at=%s:5:7 \17// RUN:              -cursor-at=%s:6:6 \18// RUN:              -cursor-at=%s:6:19 \19// RUN:     -include %s.h %s | FileCheck %s20 21// With PCH22// RUN: c-index-test -write-pch %t.h.pch %s.h -Xclang -detailed-preprocessing-record23// RUN: c-index-test -cursor-at=%s.h:1:11 \24// RUN:              -cursor-at=%s.h:2:14 \25// RUN:              -cursor-at=%s.h:4:5 \26// RUN:              -cursor-at=%s.h:5:5 \27// RUN:              -cursor-at=%s.h:5:14 \28// RUN:              -cursor-at=%s:5:7 \29// RUN:              -cursor-at=%s:6:6 \30// RUN:              -cursor-at=%s:6:19 \31// RUN:     -include %t.h %s | FileCheck %s32 33// From header34// CHECK: macro definition=OBSCURE35// CHECK: macro definition=DECORATION36// CHECK: macro expansion=DECORATION:2:937// CHECK: macro expansion=OBSCURE:1:938// CHECK: macro expansion=DECORATION:2:939 40// From main file41// CHECK: macro expansion=OBSCURE:1:942// CHECK: macro expansion=OBSCURE:1:943// CHECK: macro expansion=DECORATION:2:944