blob: c5361b995482a3918379725f32901e979027211d [file] [log] [blame]
Arthur Eubanks2ca6c422020-07-28 09:08:08 -07001; RUN: opt < %s -function-attrs -S | FileCheck %s
Eric Christophercee313d2019-04-17 04:52:47 +00002; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
3; PR8279
4
5@g = constant i32 1
6
7; CHECK: Function Attrs
8; CHECK-SAME: norecurse
9; CHECK-NOT: readonly
10; CHECK-NEXT: void @foo()
11define void @foo() {
12 %tmp = load volatile i32, i32* @g
13 ret void
14}