blob: b455fdd8c3ec0c162a366f7472da74afb28909cb [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -functionattrs -S | grep readonly | count 2
Duncan Sands1410dfd2008-12-31 16:14:43 +00002
3define i32 @f() {
4entry:
5 %tmp = call i32 @e( ) ; <i32> [#uses=1]
6 ret i32 %tmp
7}
8
9declare i32 @e() readonly