2008-02-17 20:02:20 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep .weak.*f
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep .weak.*h
|
2006-12-05 17:00:17 +00:00
|
|
|
|
2008-02-17 20:02:20 +00:00
|
|
|
define weak i32 @f() {
|
2006-12-05 17:00:17 +00:00
|
|
|
entry:
|
2008-02-17 20:02:20 +00:00
|
|
|
unreachable
|
2006-12-05 17:00:17 +00:00
|
|
|
}
|
2006-12-06 13:35:10 +00:00
|
|
|
|
2008-02-17 20:02:20 +00:00
|
|
|
define void @g() {
|
2006-12-06 13:35:10 +00:00
|
|
|
entry:
|
2008-02-17 20:02:20 +00:00
|
|
|
tail call void @h( )
|
2006-12-06 13:35:10 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2008-02-17 20:02:20 +00:00
|
|
|
declare extern_weak void @h()
|
|
|
|
|