| Chris Lattner | 59e5462 | 2004-11-10 19:43:31 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -ipconstprop -deadargelim | llvm-dis | not grep %X |
| 2 | |||||
| 3 | implementation | ||||
| 4 | |||||
| 5 | internal int %foo(int %X) { | ||||
| 6 | %Y = call int %foo( int %X ) | ||||
| 7 | %Z = add int %Y, 1 | ||||
| 8 | ret int %Z | ||||
| 9 | } | ||||
| 10 | |||||
| 11 | void %bar() { | ||||
| 12 | call int %foo( int 17 ) ; <int>:0 [#uses=0] | ||||
| 13 | ret void | ||||
| 14 | } | ||||