llvm-project/llvm/test/DebugInfo/dwarfdump-inlining.test

29 lines
1002 B
Plaintext

RUN: llvm-dwarfdump %p/Inputs/dwarfdump-inl-test.elf-x86-64 --address=0x613 \
RUN: --inlining --functions | FileCheck %s -check-prefix DEEP_STACK
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-inl-test.elf-x86-64 --address=0x6de \
RUN: --inlining | FileCheck %s -check-prefix SHORTER_STACK
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-inl-test.elf-x86-64 --address=0x685 \
RUN: --inlining | FileCheck %s -check-prefix SHORT_STACK
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-inl-test.elf-x86-64 --address=0x640 \
RUN: --functions | FileCheck %s -check-prefix INL_FUNC_NAME
DEEP_STACK: inlined_h
DEEP_STACK-NEXT: header.h:2:21
DEEP_STACK-NEXT: inlined_g
DEEP_STACK-NEXT: header.h:7
DEEP_STACK-NEXT: inlined_f
DEEP_STACK-NEXT: main.cc:3
DEEP_STACK-NEXT: main
DEEP_STACK-NEXT: main.cc:8
SHORTER_STACK: header.h:7:20
SHORTER_STACK-NEXT: main.cc:3
SHORTER_STACK-NEXT: main.cc:8
SHORT_STACK: main.cc:3:20
SHORT_STACK-NEXT: main.cc:8
INL_FUNC_NAME: inlined_g
INL_FUNC_NAME-NEXT: header.h:7:20