summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/hello2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ExecutionEngine/hello2.ll')
-rw-r--r--test/ExecutionEngine/hello2.ll24
1 files changed, 10 insertions, 14 deletions
diff --git a/test/ExecutionEngine/hello2.ll b/test/ExecutionEngine/hello2.ll
index b186c52e2b..772dc0493e 100644
--- a/test/ExecutionEngine/hello2.ll
+++ b/test/ExecutionEngine/hello2.ll
@@ -1,22 +1,18 @@
-; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: llvm-as < %s -f -o %t.bc
; RUN: lli %t.bc > /dev/null
+@X = global i32 7 ; <i32*> [#uses=0]
+@msg = internal global [13 x i8] c"Hello World\0A\00" ; <[13 x i8]*> [#uses=1]
-%X = global int 7
-%msg = internal global [13 x sbyte] c"Hello World\0A\00"
+declare void @printf([13 x i8]*, ...)
-
-implementation
-
-declare void %printf([13 x sbyte]*,...)
-
-void %bar() {
- call void([13 x sbyte]*,...)* %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
}