When calculating 'nocapture' argument attributes, allow
[oota-llvm.git] / test / Transforms / FunctionAttrs / 2008-09-03-ReadOnly.ll
1 ; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | grep readonly | count 2
2
3 define i32 @f() {
4 entry:
5         %tmp = call i32 @e( )           ; <i32> [#uses=1]
6         ret i32 %tmp
7 }
8
9 declare i32 @e() readonly