1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/ARM/weak.ll

17 lines
266 B
LLVM
Raw Normal View History

2008-02-17 21:02:20 +01:00
; RUN: llvm-as < %s | llc -march=arm | grep .weak.*f
; RUN: llvm-as < %s | llc -march=arm | grep .weak.*h
2008-02-17 21:02:20 +01:00
define weak i32 @f() {
entry:
2008-02-17 21:02:20 +01:00
unreachable
}
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()