25 lines · plain
1; RUN: opt < %s -passes=function-attrs -S | FileCheck %s2 3@x = global i32 04 5define void @test_opt(ptr %p) {6; CHECK-LABEL: @test_opt7; CHECK: (ptr readnone captures(none) %p) #0 {8 ret void9}10 11define void @test_optnone(ptr %p) noinline optnone {12; CHECK-LABEL: @test_optnone13; CHECK: (ptr %p) #1 {14 ret void15}16 17declare i8 @strlen(ptr) noinline optnone18; CHECK-LABEL: @strlen19; CHECK: (ptr) #120 21; CHECK-LABEL: attributes #022; CHECK: = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) }23; CHECK-LABEL: attributes #124; CHECK: = { noinline optnone }25