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