Make bugpoint dead-argument-hacking actually work, and actually test it.
[oota-llvm.git] / test / BugPoint / remove_arguments_test.ll
1 ; RUN: bugpoint %s -output-prefix %t -bugpoint-crashcalls -silence-passes
2 ; RUN: llvm-dis remove_arguments_test.ll.tmp-reduced-simplified.bc -o - | FileCheck %s
3
4 ; Test to make sure that arguments are removed from the function if they are 
5 ; unnecessary.
6
7 declare i32 @test2()
8
9 ; CHECK: define void @test() {
10 define i32 @test(i32 %A, i32 %B, float %C) {
11         call i32 @test2()
12         ret i32 %1
13 }