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