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