New testcase that crashes the funcresolve pass.
authorChris Lattner <sabre@nondot.org>
Wed, 21 May 2003 20:44:16 +0000 (20:44 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 21 May 2003 20:44:16 +0000 (20:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6272 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/FunctionResolve/2003-05-21-MissingArguments.ll [new file with mode: 0644]

diff --git a/test/Transforms/FunctionResolve/2003-05-21-MissingArguments.ll b/test/Transforms/FunctionResolve/2003-05-21-MissingArguments.ll
new file mode 100644 (file)
index 0000000..cfbc76c
--- /dev/null
@@ -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
+}