From: Chris Lattner Date: Thu, 25 Jul 2002 20:57:21 +0000 (+0000) Subject: New testcase for bug X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=eb6fb84f45118d8d1d58a6bf2b8ca0051832b2af;p=oota-llvm.git New testcase for bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3102 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Assembler/2002-07-25-ReturnPtrFunction.llx b/test/Assembler/2002-07-25-ReturnPtrFunction.llx new file mode 100644 index 00000000000..ea408600429 --- /dev/null +++ b/test/Assembler/2002-07-25-ReturnPtrFunction.llx @@ -0,0 +1,13 @@ +; Test that returning a pointer to a function causes the disassembler to print +; the right thing. +; +; RUN: as < %s | dis | as + +%ty = type void (int) + +declare %ty* %foo() + +void %test() { + call %ty*()* %foo() + ret void +}