blob: ed01cf5223f0f0586430cd8bd19fdf1897b87ecd [file] [log] [blame]
Argyrios Kyrtzidisb49e7282011-11-29 03:14:11 +00001#define FOO
2
3FOO
4FOO
5
6// RUN: c-index-test -file-refs-at=%s:3:2 %s | FileCheck %s
Argyrios Kyrtzidisb8cb21c2011-11-29 05:48:01 +00007// RUN: env CINDEXTEST_EDITING=1 c-index-test -file-refs-at=%s:3:2 %s | FileCheck %s
Argyrios Kyrtzidisb49e7282011-11-29 03:14:11 +00008
9// CHECK: macro expansion=FOO:1:9
10// CHECK-NEXT: macro definition=FOO =[1:9 - 1:12]
11// CHECK-NEXT: macro expansion=FOO:1:9 =[3:1 - 3:4]
12// CHECK-NEXT: macro expansion=FOO:1:9 =[4:1 - 4:4]