llvm-6502/test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll
2009-09-08 22:34:10 +00:00

10 lines
169 B
LLVM

; RUN: opt %s -functionattrs -S | grep readonly | count 2
define i32 @f() {
entry:
%tmp = call i32 @e( ) ; <i32> [#uses=1]
ret i32 %tmp
}
declare i32 @e() readonly