YouCompleteMe/cpp/llvm/test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll

10 lines
180 B
LLVM
Raw Normal View History

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