From 21115275747bec3c6b5637e3ec4968a1db5d197c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 31 May 2003 21:04:39 +0000 Subject: [PATCH] New testcase llvm-svn: 6481 --- .../FunctionResolve/2003-05-31-InternalDecl.ll | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 llvm/test/Regression/Transforms/FunctionResolve/2003-05-31-InternalDecl.ll diff --git a/llvm/test/Regression/Transforms/FunctionResolve/2003-05-31-InternalDecl.ll b/llvm/test/Regression/Transforms/FunctionResolve/2003-05-31-InternalDecl.ll new file mode 100644 index 000000000000..ab41e2ec8218 --- /dev/null +++ b/llvm/test/Regression/Transforms/FunctionResolve/2003-05-31-InternalDecl.ll @@ -0,0 +1,15 @@ +; RUN: if as < %s | opt -funcresolve | dis | grep declare +; RUN: then exit 1 +; RUN: else exit 0 +; RUN: fi + +declare void %test(...) + +int %callee() { + call void(...)* %test(int 5) + ret int 2 +} + +internal void %test(int) { + ret void +}