llvm-project/llvm/test/CodeGen/ARM/weak.ll

19 lines
265 B
LLVM
Raw Normal View History

; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
2008-02-18 04:02:20 +08:00
define weak i32 @f() {
entry:
2008-02-18 04:02:20 +08:00
unreachable
}
2006-12-06 21:35:10 +08:00
2008-02-18 04:02:20 +08:00
define void @g() {
2006-12-06 21:35:10 +08:00
entry:
2008-02-18 04:02:20 +08:00
tail call void @h( )
2006-12-06 21:35:10 +08:00
ret void
}
2008-02-18 04:02:20 +08:00
declare extern_weak void @h()
; CHECK: {{.}}weak{{.*}}f
; CHECK: {{.}}weak{{.*}}h