blob: cea49fb1ceca5a485ba3cdc939e602aa58c34c30 [file] [log] [blame]
Nick Lewyckyf4dcd8a2009-06-12 15:56:56 +00001; RUN: llvm-as < %s | opt -mergefunc | llvm-dis > %t
2; RUN: grep {define weak} %t | count 2
3; RUN: grep {call} %t | count 2
4
5define weak i32 @sum(i32 %x, i32 %y) {
6 %sum = add i32 %x, %y
7 ret i32 %sum
8}
9
10define weak i32 @add(i32 %x, i32 %y) {
11 %sum = add i32 %x, %y
12 ret i32 %sum
13}