1; RUN: opt < %s -function-attrs -S | FileCheck %s
2; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
3; PR2792
4
5@g = global i32 0 ; <i32*> [#uses=1]
6
7define i32 @f() {
8 %t = load volatile i32, i32* @g ; <i32> [#uses=1]
9 ret i32 %t
10}
11
12; CHECK-NOT: attributes #{{.*}} read
13