1 | // RUN: c-index-test core -print-source-symbols -- %s | FileCheck %s |
2 | // RUN: %clang_cc1 -emit-pch %s -o %t.pch |
3 | // RUN: c-index-test core -print-source-symbols -module-file %t.pch | FileCheck %s |
4 | |
5 | // CHECK: [[@LINE+1]]:6 | function/C | test1 | [[TEST1_USR:.*]] | [[TEST1_CG:.*]] | Decl | rel: 0 |
6 | void test1(); |
7 | |
8 | // CHECK: [[@LINE+1]]:20 | function/C | test2 | [[TEST2_USR:.*]] | {{.*}} | Def | rel: 0 |
9 | static inline void test2() { |
10 | // CHECK: [[@LINE+2]]:3 | function/C | test1 | [[TEST1_USR]] | [[TEST1_CG]] | Ref,Call,RelCall,RelCont | rel: 1 |
11 | // CHECK-NEXT: RelCall,RelCont | test2 | [[TEST2_USR]] |
12 | test1(); |
13 | } |
14 | |