brintos

brintos / llvm-project-archived public Read only

0
0
Text · 345 B · aef6640 Raw
17 lines · plain
1; RUN: opt < %s -passes=function-attrs -S | FileCheck %s2 3; See PR267744 5; CHECK-LABEL: define void @bar(ptr readonly %0) {6define void @bar(ptr readonly) {7  call void @foo(ptr %0)8  ret void9}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 void16}17