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