1*9880d681SAndroid Build Coastguard Worker; This test case ensures that when the visibility of a global declaration is 2*9880d681SAndroid Build Coastguard Worker; emitted they are not treated as definitions. Test case for r132825. 3*9880d681SAndroid Build Coastguard Worker; Fixes <rdar://problem/9429892>. 4*9880d681SAndroid Build Coastguard Worker; 5*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=x86_64-apple-darwin %s -o - | FileCheck %s 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker@foo_private_extern_str = external hidden global i8* 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdefine void @foo1() nounwind ssp { 10*9880d681SAndroid Build Coastguard Workerentry: 11*9880d681SAndroid Build Coastguard Worker %tmp = load i8*, i8** @foo_private_extern_str, align 8 12*9880d681SAndroid Build Coastguard Worker call void @foo3(i8* %tmp) 13*9880d681SAndroid Build Coastguard Worker ret void 14*9880d681SAndroid Build Coastguard Worker} 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Workerdeclare void @foo3(i8*) 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: .private_extern 19