1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -functionattrs -S | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; See PR26774 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: define void @bar(i8* readonly) { 6*9880d681SAndroid Build Coastguard Workerdefine void @bar(i8* readonly) { 7*9880d681SAndroid Build Coastguard Worker call void @foo(i8* %0) 8*9880d681SAndroid Build Coastguard Worker ret void 9*9880d681SAndroid Build Coastguard Worker} 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: define linkonce_odr void @foo(i8* readonly) { 13*9880d681SAndroid Build Coastguard Workerdefine linkonce_odr void @foo(i8* readonly) { 14*9880d681SAndroid Build Coastguard Worker call void @bar(i8* %0) 15*9880d681SAndroid Build Coastguard Worker ret void 16*9880d681SAndroid Build Coastguard Worker} 17