blob: 23bb18e92b4cbef7441471f5dddaf08cacb65f3b [file] [log] [blame]
Duncan Sandsb8f3b14d2010-10-30 12:59:44 +00001; RUN: opt < %s -functionattrs -S | FileCheck %s
2; PR8279
3
4@g = constant i32 1
5
6define void @foo() {
James Molloy7e9bdd52015-11-12 10:55:20 +00007; CHECK: void @foo() #0 {
David Blaikiea79ac142015-02-27 21:17:42 +00008 %tmp = load volatile i32, i32* @g
Duncan Sandsb8f3b14d2010-10-30 12:59:44 +00009 ret void
10}
James Molloy7e9bdd52015-11-12 10:55:20 +000011
12; CHECK: attributes #0 = { norecurse }