blob: dc597ffa94e87251e415d2625a51b9eaf05bd52d [file] [log] [blame]
Argyrios Kyrtzidis03c40c52011-09-15 18:02:56 +00001
2
3
4typedef int T;
5void OBSCURE(func)(int x) {
6 OBSCURE(T) DECORATION value;
7}
8
9
10// Without PCH
11// 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:5:7 \
15// RUN: -cursor-at=%s:6:6 \
16// RUN: -cursor-at=%s:6:19 \
17// RUN: -include %s.h %s | FileCheck %s
18
19// With PCH
20// RUN: c-index-test -write-pch %t.h.pch %s.h -Xclang -detailed-preprocessing-record
21// RUN: c-index-test -cursor-at=%s.h:1:11 \
22// RUN: -cursor-at=%s.h:2:14 \
23// RUN: -cursor-at=%s.h:4:5 \
24// RUN: -cursor-at=%s:5:7 \
25// RUN: -cursor-at=%s:6:6 \
26// RUN: -cursor-at=%s:6:19 \
27// RUN: -include %t.h %s | FileCheck %s
28
29// CHECK: macro definition=OBSCURE
30// CHECK: macro definition=DECORATION
31// CHECK: macro expansion=DECORATION:2:9
32// CHECK: macro expansion=OBSCURE:1:9
33// CHECK: macro expansion=OBSCURE:1:9
34// CHECK: macro expansion=DECORATION:2:9