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