blob: 62d7d2ebcac678b2e4c0a428ad31e258f7fad74c [file] [log] [blame]
Dan Gohman1b4c27772009-09-08 16:50:01 +00001; RUN: opt %s -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}