1*9880d681SAndroid Build Coastguard Worker; RUN: opt -module-summary %s -o %t.bc 2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t.bc %p/Inputs/drop-debug-info.bc 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; The imported module has out-of-date debug information, let's make sure we can 5*9880d681SAndroid Build Coastguard Worker; drop them without crashing when materializing later. 6*9880d681SAndroid Build Coastguard Worker; RUN: llvm-lto -thinlto-action=import %t.bc -thinlto-index=%t.index.bc -o - | llvm-dis -o - | FileCheck %s 7*9880d681SAndroid Build Coastguard Worker; CHECK: define available_externally void @globalfunc 8*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: llvm.dbg.value 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 11*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-apple-macosx10.11.0" 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerdefine i32 @main() #0 { 15*9880d681SAndroid Build Coastguard Workerentry: 16*9880d681SAndroid Build Coastguard Worker call void (...) @globalfunc() 17*9880d681SAndroid Build Coastguard Worker ret i32 0 18*9880d681SAndroid Build Coastguard Worker} 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Workerdeclare void @globalfunc(...)