1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01: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.

llvm-svn: 73225
This commit is contained in:
Nick Lewycky 2009-06-12 13:24:41 +00:00
parent f0b761540d
commit cc239d7680

View File

@ -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
}