diff options
Diffstat (limited to 'llvm/test/BugPoint/remove_arguments_test.ll')
-rw-r--r-- | llvm/test/BugPoint/remove_arguments_test.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/BugPoint/remove_arguments_test.ll b/llvm/test/BugPoint/remove_arguments_test.ll new file mode 100644 index 00000000000..ed77da7cb83 --- /dev/null +++ b/llvm/test/BugPoint/remove_arguments_test.ll @@ -0,0 +1,10 @@ +; RUN: llvm-upgrade < %s > %t1.ll +; RUN: bugpoint %t1.ll -bugpoint-crashcalls + +; Test to make sure that arguments are removed from the function if they are unnecessary. + +declare int %test2() +int %test(int %A, int %B, float %C) { + call int %test2() + ret int %0 +} |