1 ; RUN: opt < %s -deadargelim -S | not grep DEADARG
3 ; test - an obviously dead argument
4 define internal i32 @test(i32 %v, i32 %DEADARG1, i32* %p) {
9 ; hardertest - an argument which is only used by a call of a function with a
11 define internal i32 @hardertest(i32 %DEADARG2) {
12 %p = alloca i32 ; <i32*> [#uses=1]
13 %V = call i32 @test( i32 5, i32 %DEADARG2, i32* %p ) ; <i32> [#uses=1]
17 ; evenhardertest - recursive dead argument...
18 define internal void @evenhardertest(i32 %DEADARG3) {
19 call void @evenhardertest( i32 %DEADARG3 )
23 define internal void @needarg(i32 %TEST) {
24 call i32 @needarg2( i32 %TEST ) ; <i32>:1 [#uses=0]
28 define internal i32 @needarg2(i32 %TEST) {
32 define internal void @needarg3(i32 %TEST3) {
33 call void @needarg( i32 %TEST3 )