Home | History | Annotate | Download | only in FunctionAttrs
      1 ; RUN: opt < %s -functionattrs -S | FileCheck %s
      2 
      3 ; See PR26774
      4 
      5 ; CHECK-LABEL: define void @bar(i8* readonly) {
      6 define void @bar(i8* readonly) {
      7   call void @foo(i8* %0)
      8   ret void
      9 }
     10 
     11 
     12 ; CHECK-LABEL: define linkonce_odr void @foo(i8* readonly) {
     13 define linkonce_odr void @foo(i8* readonly) {
     14   call void @bar(i8* %0)
     15   ret void
     16 }
     17