blob: 6dee766b74d1c488ff60bee12b9f38a426a1abd2 [file] [log] [blame]
Dan Gohman5bb7c7c2009-09-08 22:34:10 +00001; RUN: opt %s -functionattrs -S | 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}