aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-24 23:40:27 +0000
committerChris Lattner <sabre@nondot.org>2003-06-24 23:40:27 +0000
commit484147db9c8386e8e6840475b7911d7dbf8bd109 (patch)
tree156fd00723adf050a05dbf5e036a4ef782e1511d
parent2d8270c92f288e569369e2dbc8e64b3d66dbcde9 (diff)
downloadexternal_llvm-484147db9c8386e8e6840475b7911d7dbf8bd109.zip
external_llvm-484147db9c8386e8e6840475b7911d7dbf8bd109.tar.gz
external_llvm-484147db9c8386e8e6840475b7911d7dbf8bd109.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6893 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/BugPoint/remove_arguments_test.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/BugPoint/remove_arguments_test.ll b/test/BugPoint/remove_arguments_test.ll
new file mode 100644
index 0000000..5a0bd6f
--- /dev/null
+++ b/test/BugPoint/remove_arguments_test.ll
@@ -0,0 +1,9 @@
+; RUN: bugpoint %s -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
+}