Remove conflicting attributes before adding deduced readonly/readnone
[oota-llvm.git] / test / Transforms / FunctionAttrs / 2008-09-13-VolatileRead.ll
1 ; RUN: opt < %s -functionattrs -S | not grep read
2 ; PR2792
3
4 @g = global i32 0               ; <i32*> [#uses=1]
5
6 define i32 @f() {
7         %t = load volatile i32, i32* @g         ; <i32> [#uses=1]
8         ret i32 %t
9 }