From 721c201bd55ffb73cb2ba8d39e0570fa38c44e15 Mon Sep 17 00:00:00 2001 From: dim <dim@FreeBSD.org> 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/hello.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/ExecutionEngine/MCJIT/hello.ll (limited to 'test/ExecutionEngine/MCJIT/hello.ll') diff --git a/test/ExecutionEngine/MCJIT/hello.ll b/test/ExecutionEngine/MCJIT/hello.ll new file mode 100644 index 0000000..a52b6d4 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/hello.ll @@ -0,0 +1,11 @@ +; RUN: %lli -use-mcjit %s > /dev/null + +@.LC0 = internal global [12 x i8] c"Hello World\00" ; <[12 x i8]*> [#uses=1] + +declare i32 @puts(i8*) + +define i32 @main() { + %reg210 = call i32 @puts( i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] + ret i32 0 +} + -- cgit v1.1