aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-21 20:44:16 +0000
committerChris Lattner <sabre@nondot.org>2003-05-21 20:44:16 +0000
commit62a4b839a6a3689e4406da0c4351faae6696bf89 (patch)
tree5b509bc9c77611707408ed7b58d14b85e4308dab
parentdbe48dcaec69ff78e39e2d5faf4323ade6fffb04 (diff)
New testcase that crashes the funcresolve pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6272 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/FunctionResolve/2003-05-21-MissingArguments.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/FunctionResolve/2003-05-21-MissingArguments.ll b/test/Transforms/FunctionResolve/2003-05-21-MissingArguments.ll
new file mode 100644
index 0000000000..cfbc76c0d1
--- /dev/null
+++ b/test/Transforms/FunctionResolve/2003-05-21-MissingArguments.ll
@@ -0,0 +1,11 @@
+; RUN: as < %s | opt -funcresolve -disable-output
+
+void %foo(int, int) {
+ ret void
+}
+declare void %foo(...)
+
+void %test() {
+ call void(...)* %foo(int 7)
+ ret void
+}