2008-02-19 09:41:04 +08:00
|
|
|
; RUN: llvm-as < %s | llc -march=alpha | grep .weak.*f
|
|
|
|
; RUN: llvm-as < %s | llc -march=alpha | grep .weak.*h
|
2006-12-08 01:37:54 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define weak i32 @f() {
|
2006-12-08 01:37:54 +08:00
|
|
|
entry:
|
2008-02-19 09:41:04 +08:00
|
|
|
unreachable
|
2006-12-08 01:37:54 +08:00
|
|
|
}
|
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define void @g() {
|
2006-12-08 01:37:54 +08:00
|
|
|
entry:
|
2008-02-19 09:41:04 +08:00
|
|
|
tail call void @h( )
|
2006-12-08 01:37:54 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
declare extern_weak void @h()
|
|
|
|
|