xref: /llvm-project/bolt/test/X86/inlined-function-mixed.test (revision 11791ae7b0b05b8bd8d806331ff51da618912cf8)
1## Make sure inlining from a unit with debug info into unit without
2## debug info does not cause a crash.
3
4RUN: %clangxx %cxxflags %S/Inputs/inlined.cpp -c -o %T/inlined.o
5RUN: %clangxx %cxxflags %S/Inputs/inlinee.cpp -c -o %T/inlinee.o -g
6RUN: %clangxx %cxxflags %T/inlined.o %T/inlinee.o -o %t
7
8RUN: llvm-bolt %t -o %t.bolt --update-debug-sections --reorder-blocks=reverse \
9RUN:   --inline-small-functions --force-inline=main | FileCheck %s
10
11CHECK-NOT: BOLT: 0 out of {{.*}} functions were overwritten
12