summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionAttrs/2010-10-30-volatile.ll
blob: b9536dce8a489e02c74f4a3f18a6ad7796cfc0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: opt < %s -functionattrs -S | FileCheck %s
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
; PR8279

@g = constant i32 1

; CHECK: Function Attrs
; CHECK-SAME: norecurse
; CHECK-NOT: readonly
; CHECK-NEXT: void @foo()
define void @foo() {
  %tmp = load volatile i32, i32* @g
  ret void
}
OpenPOWER on IntegriCloud