blob: b6077fd8ee39c579755529a7e5340b6109588a8b [file] [log] [blame]
Duncan Sands1410dfd2008-12-31 16:14:43 +00001; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | not grep read
Duncan Sands13135722008-09-13 12:45:50 +00002; PR2792
3
4@g = global i32 0 ; <i32*> [#uses=1]
5
6define i32 @f() {
7 %t = volatile load i32* @g ; <i32> [#uses=1]
8 ret i32 %t
9}