X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FExecutionEngine%2Fhello2.ll;h=13b25884fee7a043a85e0aa2ed696cf5ed3b7a2b;hb=e4d91ca81e87a2b70112a01fbbee9f7515f0db3c;hp=48d7688bcc62b399ceb935c4d7928af7106d1e48;hpb=699104633afb16c22ce3cd8fe1dc8054aacdc613;p=oota-llvm.git diff --git a/test/ExecutionEngine/hello2.ll b/test/ExecutionEngine/hello2.ll index 48d7688bcc6..13b25884fee 100644 --- a/test/ExecutionEngine/hello2.ll +++ b/test/ExecutionEngine/hello2.ll @@ -1,19 +1,17 @@ +; RUN: %lli %s > /dev/null -%X = global int 7 -%msg = internal global [13 x sbyte] c"Hello World\0A\00" +@X = global i32 7 ; [#uses=0] +@msg = internal global [13 x i8] c"Hello World\0A\00" ; <[13 x i8]*> [#uses=1] +declare void @printf([13 x i8]*, ...) -implementation - -declare void %printf([13 x sbyte]*) - -void %bar() { - call void %printf([13 x sbyte]* %msg) - ret void +define void @bar() { + call void ([13 x i8]*, ...)* @printf( [13 x i8]* @msg ) + ret void } -int %main() { - call void %bar() - ret int 0 +define i32 @main() { + call void @bar( ) + ret i32 0 }