summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitef3d5d055d1fdb9e29b69a04494afbdfecb771c7 (patch)
treef7219ddc3b83d947994fd96317cc88547692040e /llvm
parent7f8bb880b470cc0016f89fb0efb2c14e80beb7eb (diff)
downloadbcm5719-llvm-ef3d5d055d1fdb9e29b69a04494afbdfecb771c7.tar.gz
bcm5719-llvm-ef3d5d055d1fdb9e29b69a04494afbdfecb771c7.zip
New testcase
llvm-svn: 6893
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Regression/BugPoint/remove_arguments_test.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Regression/BugPoint/remove_arguments_test.ll b/llvm/test/Regression/BugPoint/remove_arguments_test.ll
new file mode 100644
index 00000000000..5a0bd6f0093
--- /dev/null
+++ b/llvm/test/Regression/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
+}
OpenPOWER on IntegriCloud