1*11791ae7SSayhaan Siddiqui## Make sure inlining from a unit with debug info into unit without 2*11791ae7SSayhaan Siddiqui## debug info does not cause a crash. 38331f75eSAmir Ayupov 487a57aadSVladislav KhmelevskyRUN: %clangxx %cxxflags %S/Inputs/inlined.cpp -c -o %T/inlined.o 5dcc595eaSVladislav KhmelevskyRUN: %clangxx %cxxflags %S/Inputs/inlinee.cpp -c -o %T/inlinee.o -g 687a57aadSVladislav KhmelevskyRUN: %clangxx %cxxflags %T/inlined.o %T/inlinee.o -o %t 78331f75eSAmir Ayupov 8d648aa1bSMaksim PanchenkoRUN: llvm-bolt %t -o %t.bolt --update-debug-sections --reorder-blocks=reverse \ 9d648aa1bSMaksim PanchenkoRUN: --inline-small-functions --force-inline=main | FileCheck %s 108331f75eSAmir Ayupov 118331f75eSAmir AyupovCHECK-NOT: BOLT: 0 out of {{.*}} functions were overwritten 12