1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o %t.o 2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %p/Inputs/visibility.ll -o %t2.o 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ 5*9880d681SAndroid Build Coastguard Worker; RUN: --plugin-opt=save-temps \ 6*9880d681SAndroid Build Coastguard Worker; RUN: -shared %t.o %t2.o -o %t.so 7*9880d681SAndroid Build Coastguard Worker; RUN: llvm-readobj -t %t.so | FileCheck %s 8*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dis %t.so.bc -o - | FileCheck --check-prefix=IR %s 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker; CHECK: Name: foo 11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Value: 12*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Size: 13*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Binding: Global 14*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Type: Function 15*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: Other [ 16*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: STV_PROTECTED 17*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ] 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker; IR: define protected void @foo 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerdefine weak protected void @foo() { 22*9880d681SAndroid Build Coastguard Worker ret void 23*9880d681SAndroid Build Coastguard Worker} 24