1 ; RUN: opt < %s -passes=globalopt -S | FileCheck %s
3 ; Check that naked functions don't get marked with fast calling conventions
5 @g = common global i32 0, align 4
9 %call = call i32 @foo(ptr @g)
10 ; CHECK: %call = call i32 @foo(ptr @g)
14 define internal i32 @foo(ptr) #0 {
16 %retval = alloca i32, align 4
17 call void asm sideeffect "ldr r0, [r0] \0Abx lr \0A", ""()
21 ; CHECK: define internal i32 @foo(ptr %0)
23 attributes #0 = { naked }