1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -deadargelim -S | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; rdar://11546243 4*9880d681SAndroid Build Coastguard Worker%struct.A = type { i8 } 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine available_externally void @_Z17externallyDefinedP1A(%struct.A* %a) { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker call void @_Z3foov() 9*9880d681SAndroid Build Coastguard Worker ret void 10*9880d681SAndroid Build Coastguard Worker} 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerdeclare void @_Z3foov() 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerdefine void @_Z4testP1A(%struct.A* %a) { 15*9880d681SAndroid Build Coastguard Worker; CHECK: @_Z4testP1A 16*9880d681SAndroid Build Coastguard Worker; CHECK: @_Z17externallyDefinedP1A(%struct.A* %a) 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workerentry: 19*9880d681SAndroid Build Coastguard Worker call void @_Z17externallyDefinedP1A(%struct.A* %a) 20*9880d681SAndroid Build Coastguard Worker ret void 21*9880d681SAndroid Build Coastguard Worker} 22