blob: ccfbc2f7397b4ea4d7d3f642a28310c022edeb55 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -deadargelim | llvm-dis | not grep DEAD
2
3implementation
4
5internal int %test(int %DEADARG) { ; Dead arg only used by dead retval
6 ret int %DEADARG
7}
8
9int %test2(int %A) {
10 %DEAD = call int %test(int %A)
11 ret int 123
12}
13
14int %test3() {
15 %X = call int %test2(int 3232)
16 %Y = add int %X, -123
17 ret int %Y
18}
19