New testcase for bug
authorChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 20:57:21 +0000 (20:57 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 20:57:21 +0000 (20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3102 91177308-0d34-0410-b5e6-96231b3b80d8

test/Assembler/2002-07-25-ReturnPtrFunction.llx [new file with mode: 0644]

diff --git a/test/Assembler/2002-07-25-ReturnPtrFunction.llx b/test/Assembler/2002-07-25-ReturnPtrFunction.llx
new file mode 100644 (file)
index 0000000..ea40860
--- /dev/null
@@ -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
+}