Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-readobj / codeview-inlinees.test
blob9f818dfc289908a3c705b50a0863fd0433e93063
1 Compile the following like so to reproduce the input:
2 $ cl -c -O2 t.c -Z7
3 void g();
4 static inline void f() { g(); }
5 static inline void h() { g(); }
6 void k() {
7   f();
8   h();
11 RUN: llvm-readobj --codeview %p/Inputs/codeview-inlinees.obj | FileCheck %s
13 CHECK:    SubSectionType: InlineeLines (0xF6)
14 CHECK:      Inlinee: f (0x1003)
15 CHECK:      Inlinee: h (0x1004)
16 CHECK-NOT: Inlinee:
18 CHECK:    GlobalProcIdSym {
19 CHECK:      Kind: S_GPROC32_ID (0x1147)
20 CHECK:      DisplayName: k
21 CHECK:      LinkageName: k
22 CHECK:    }
23 CHECK:    InlineSiteSym
24 CHECK:      Kind: S_INLINESITE (0x114D)
25 CHECK:      Inlinee: h (0x1004)
26 CHECK:    InlineSiteSym
27 CHECK:      Kind: S_INLINESITE (0x114D)
28 CHECK:      Inlinee: f (0x1003)
29 CHECK:    InlineesSym {
30 CHECK-NEXT:      Kind: S_INLINEES (0x1168)
31 CHECK-NEXT:      Callers [
32 CHECK-NEXT:        FuncID: f (0x1003)
33 CHECK-NEXT:        FuncID: h (0x1004)
34 CHECK-NEXT:      ]
35 CHECK:    }
36 CHECK:    ProcEnd {
37 CHECK:      Kind: S_PROC_ID_END (0x114F)
38 CHECK:    }