mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
This test is wrong. If you have two weak functions F and G you can't make
either one call the other since either one can be replaced at link time, and they need to be independent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73225 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45db29c6f1
commit
f343b69f47
@ -1,11 +0,0 @@
|
||||
; RUN: llvm-as < %s | opt -mergefunc | llvm-dis | grep {alias weak} | count 2
|
||||
|
||||
define weak i32 @sum(i32 %x, i32 %y) {
|
||||
%sum = add i32 %x, %y
|
||||
ret i32 %sum
|
||||
}
|
||||
|
||||
define weak i32 @add(i32 %x, i32 %y) {
|
||||
%sum = add i32 %x, %y
|
||||
ret i32 %sum
|
||||
}
|
Loading…
Reference in New Issue
Block a user