From 721c201bd55ffb73cb2ba8d39e0570fa38c44e15 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 15 Aug 2012 19:34:23 +0000 Subject: Vendor import of llvm trunk r161861: http://llvm.org/svn/llvm-project/llvm/trunk@161861 --- test/ExecutionEngine/MCJIT/test-call-no-external-funcs.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/ExecutionEngine/MCJIT/test-call-no-external-funcs.ll (limited to 'test/ExecutionEngine/MCJIT/test-call-no-external-funcs.ll') diff --git a/test/ExecutionEngine/MCJIT/test-call-no-external-funcs.ll b/test/ExecutionEngine/MCJIT/test-call-no-external-funcs.ll new file mode 100644 index 0000000..6f28405 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/test-call-no-external-funcs.ll @@ -0,0 +1,14 @@ +; RUN: %lli -use-mcjit %s > /dev/null + +define i32 @_Z14func_exit_codev() nounwind uwtable { +entry: + ret i32 0 +} + +define i32 @main() nounwind uwtable { +entry: + %retval = alloca i32, align 4 + store i32 0, i32* %retval + %call = call i32 @_Z14func_exit_codev() + ret i32 %call +} -- cgit v1.1