1 ; RUN: opt -S -functionattrs %s | FileCheck %s
2 ; RUN: opt -S -passes='function-attrs' %s | FileCheck %s
4 ; Don't change the attributes of parameters of naked functions, in particular
5 ; don't mark them as readnone
7 @g = common global i32 0, align 4
11 %call = call i32 @foo(i32* @g)
12 ; CHECK: %call = call i32 @foo(i32* @g)
16 define internal i32 @foo(i32*) #0 {
18 %retval = alloca i32, align 4
19 call void asm sideeffect "ldr r0, [r0] \0Abx lr \0A", ""()
23 ; CHECK: define internal i32 @foo(i32*)
25 attributes #0 = { naked }