summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionAttrs/readnone.ll
blob: eddcdd2641d57f878bb4c0aaae35e6064ca4cc7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: opt < %s -functionattrs -S | FileCheck %s

; CHECK: define void @bar(i8* nocapture readnone)
define void @bar(i8* readonly) {
  call void @foo(i8* %0)
    ret void
}

; CHECK: define void @foo(i8* nocapture readnone)
define void @foo(i8* readonly) {
  call void @bar(i8* %0)
  ret void
}
OpenPOWER on IntegriCloud