1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-apple-darwin | grep weak_reference | count 2 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker@Y = global i32 (i8*)* @X ; <i32 (i8*)**> [#uses=0] 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdeclare extern_weak i32 @X(i8*) 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerdefine void @bar() { 8*9880d681SAndroid Build Coastguard Worker tail call void (...) @foo( ) 9*9880d681SAndroid Build Coastguard Worker ret void 10*9880d681SAndroid Build Coastguard Worker} 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerdeclare extern_weak void @foo(...) 13*9880d681SAndroid Build Coastguard Worker 14