// RUN: c-index-test core -print-source-symbols -- %s | FileCheck %s
// RUN: c-index-test core -print-source-symbols -ignore-macros -- %s | FileCheck %s -check-prefix=DISABLED
// DISABLED-NOT: macro/C
// DISABLED-NOT: XI
// CHECK: [[@LINE+1]]:9 | macro/C | X1 | [[X1_USR:.*@macro@X1]] | Def |
// CHECK: [[@LINE+1]]:9 | macro/C | DEF | [[DEF_USR:.*@macro@DEF]] | Def |
// CHECK: [[@LINE+1]]:8 | macro/C | X1 | [[X1_USR]] | Undef |
// CHECK: [[@LINE+1]]:9 | macro/C | C | [[C_USR:.*@macro@C]] | Def |
// CHECK: [[@LINE+1]]:5 | macro/C | C | [[C_USR]] | Ref |
// CHECK: [[@LINE+1]]:8 | macro/C | C | [[C_USR]] | Ref |
// CHECK: [[@LINE+1]]:9 | macro/C | C | [[C_USR]] | Ref |
// CHECK: [[@LINE+1]]:13 | macro/C | C | [[C_USR]] | Ref |
// CHECK: [[@LINE+1]]:14 | macro/C | C | [[C_USR]] | Ref |
// Nonexistent macros should not be included.
// CHECK-NOT: NOT_DEFINED
// CHECK: [[@LINE+1]]:5 | macro/C | __LINE__ | c:@macro@__LINE__ | Ref |
// CHECK: [[@LINE+2]]:1 | macro/C | DEF | [[DEF_USR]] | Ref |
// CHECK: [[@LINE+1]]:5 | variable/C | i | c:@i | {{.*}} | Def | rel: 0
;