2015-05-26 03:46:38 +08:00
|
|
|
; RUN: opt < %s -functionattrs -S | FileCheck %s
|
2018-03-24 05:46:16 +08:00
|
|
|
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
|
2015-05-26 03:46:38 +08:00
|
|
|
|
|
|
|
; 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
|
|
|
|
}
|