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

@g = constant i32 1

define void @foo() {
; CHECK: void @foo() #0 {
  %tmp = load volatile i32, i32* @g
  ret void
}

; CHECK: attributes #0 = { norecurse }
OpenPOWER on IntegriCloud