xref: /llvm-project/llvm/test/Transforms/FunctionAttrs/2008-09-13-VolatileRead.ll (revision 3528e63d89305907b3d6e0f59f7b03b94a12dacc)
1; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
2; PR2792
3
4@g = global i32 0		; <ptr> [#uses=1]
5
6define i32 @f() {
7	%t = load volatile i32, ptr @g		; <i32> [#uses=1]
8	ret i32 %t
9}
10
11; CHECK-NOT: attributes #{{.*}} read
12