Sign in
ara-mdk
/
platform
/
external
/
llvm
/
a3493e2ad8cb2a93484eaca80265290f89311305
/
.
/
test
/
Transforms
/
FunctionAttrs
/
2008-09-03-ReadOnly.ll
blob: d8256ae8e647c91d4197f4e9d8b9b87fa791dd88 [
file
] [
log
] [
blame
]
; RUN: opt < %s -basicaa -functionattrs -S | FileCheck %s
; CHECK: define i32 @f() #0
define
i32
@f
()
{
entry
:
%tmp
=
call
i32
@e
(
)
ret
i32
%tmp
}
; CHECK: declare i32 @e() #0
declare
i32
@e
()
readonly
; CHECK: attributes #0 = { readonly }