aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-25 20:57:21 +0000
committerChris Lattner <sabre@nondot.org>2002-07-25 20:57:21 +0000
commiteb6fb84f45118d8d1d58a6bf2b8ca0051832b2af (patch)
tree07e3dc23f83a5718718fe20ef731bf20a78087d3
parenta4e251822ada2f2f46f41a8f6fa0ee346faf3fcd (diff)
New testcase for bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3102 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Assembler/2002-07-25-ReturnPtrFunction.llx13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Assembler/2002-07-25-ReturnPtrFunction.llx b/test/Assembler/2002-07-25-ReturnPtrFunction.llx
new file mode 100644
index 0000000000..ea40860042
--- /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
+}