Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Index / Core / index-pch.c
blobf5f53466e039b3730ccdbfb12c64d41079c0bfa9
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
5 // CHECK: [[@LINE+1]]:6 | function/C | test1 | [[TEST1_USR:.*]] | [[TEST1_CG:.*]] | Decl | rel: 0
6 void test1(void);
8 // CHECK: [[@LINE+1]]:20 | function/C | test2 | [[TEST2_USR:.*]] | {{.*}} | Def | rel: 0
9 static inline void test2(void) {
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();