1 ## Check that BOLT correctly prints and updates debug info for inlined
4 # REQUIRES: system-linux
6 # RUN: %clang %cflags -O1 -g %p/Inputs/inline-main.c %p/Inputs/inline-foo.c \
7 # RUN: -I%p/../Inputs -o %t.exe -Wl,-q
8 # RUN: llvm-bolt %t.exe --update-debug-sections --print-debug-info \
9 # RUN: --print-only=main --print-after-lowering --force-inline=foo \
13 ## The call to puts() should come from inline-foo.c:
14 # CHECK: callq {{.*}} # debug line {{.*}}inline-foo.c:4:3
16 # RUN: llvm-objdump --disassemble-symbols=main -d --line-numbers %t.bolt \
17 # RUN: | FileCheck %s -check-prefix=CHECK-OBJDUMP
19 ## Dump of main() should include debug info from inline-foo.c after inlining:
20 # CHECK-OBJDUMP: inline-foo.c:4