aboutsummaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/MCJIT/test-return.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ExecutionEngine/MCJIT/test-return.ll')
-rw-r--r--test/ExecutionEngine/MCJIT/test-return.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ExecutionEngine/MCJIT/test-return.ll b/test/ExecutionEngine/MCJIT/test-return.ll
new file mode 100644
index 0000000000..9c399cab38
--- /dev/null
+++ b/test/ExecutionEngine/MCJIT/test-return.ll
@@ -0,0 +1,8 @@
+; RUN: %lli -use-mcjit %s > /dev/null
+
+define i32 @main() nounwind uwtable {
+entry:
+ %retval = alloca i32, align 4
+ store i32 0, i32* %retval
+ ret i32 0
+}