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