aboutsummaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/hello2.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-10 07:21:50 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-10 07:21:50 +0000
commitceca194c4355224723b309a3a27c5e5bc19cb6fc (patch)
treed976e8cf9d933c32868d72a94d1ec2d9d7205735 /test/ExecutionEngine/hello2.ll
parentf79e60649a5edea03bdccf8521d77c15cbb33af4 (diff)
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48137 91177308-0d34-0410-b5e6-96231b3b80d8
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
}