diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/BugPoint/remove_arguments_test.ll |
Diffstat (limited to 'test/BugPoint/remove_arguments_test.ll')
-rw-r--r-- | test/BugPoint/remove_arguments_test.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/BugPoint/remove_arguments_test.ll b/test/BugPoint/remove_arguments_test.ll new file mode 100644 index 0000000000000..e5655974f7e5c --- /dev/null +++ b/test/BugPoint/remove_arguments_test.ll @@ -0,0 +1,11 @@ +; RUN: bugpoint %s -bugpoint-crashcalls -silence-passes + +; Test to make sure that arguments are removed from the function if they are +; unnecessary. + +declare i32 @test2() + +define i32 @test(i32 %A, i32 %B, float %C) { + call i32 @test2() + ret i32 %1 +} |