aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/aggregate-return-single-value.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-09 21:26:13 +0000
committerDan Gohman <gohman@apple.com>2008-06-09 21:26:13 +0000
commitc62ced5ba558cff7cd9cf712243c078a0560613e (patch)
treeff89de95aa85e554d4c3b235002b15369dd3844d /test/Assembler/aggregate-return-single-value.ll
parent1bb942642c7a94942dace21a884ddcc39217070d (diff)
downloadexternal_llvm-c62ced5ba558cff7cd9cf712243c078a0560613e.zip
external_llvm-c62ced5ba558cff7cd9cf712243c078a0560613e.tar.gz
external_llvm-c62ced5ba558cff7cd9cf712243c078a0560613e.tar.bz2
Re-apply 52002, allowing the verifier to accept non-MRV struct return
types on functions, with adjustments so that it accepts both new-style aggregate returns and old-style MRV returns, including those with only a single member. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/aggregate-return-single-value.ll')
-rw-r--r--test/Assembler/aggregate-return-single-value.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Assembler/aggregate-return-single-value.ll b/test/Assembler/aggregate-return-single-value.ll
new file mode 100644
index 0000000..02fb59f
--- /dev/null
+++ b/test/Assembler/aggregate-return-single-value.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llvm-dis
+
+define { i32 } @fooa() nounwind {
+ ret i32 0
+}
+define { i32 } @foob() nounwind {
+ ret {i32}{ i32 0 }
+}
+define [1 x i32] @fooc() nounwind {
+ ret i32 0
+}
+define [1 x i32] @food() nounwind {
+ ret [1 x i32][ i32 0 ]
+}