From 297372c523817631df26e76024642008184a3f67 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 13 Dec 2002 05:44:21 +0000 Subject: [PATCH] Making main() return 0 so that we know it ran successfully when it exits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4991 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/ExecutionEngine/test-arith.ll | 4 ++-- test/ExecutionEngine/test-shift.ll | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ExecutionEngine/test-arith.ll b/test/ExecutionEngine/test-arith.ll index 0527277e9d6..3e6e27cd36c 100644 --- a/test/ExecutionEngine/test-arith.ll +++ b/test/ExecutionEngine/test-arith.ll @@ -1,5 +1,5 @@ -void %main() { +int %main() { %A = add sbyte 0, 12 %B = sub sbyte %A, %A %C = mul sbyte %B, %B @@ -24,5 +24,5 @@ void %main() { %F = div uint 5, 6 %G = rem uint 6, 5 - ret void + ret int 0 } diff --git a/test/ExecutionEngine/test-shift.ll b/test/ExecutionEngine/test-shift.ll index a3156e9a50e..475574996a1 100644 --- a/test/ExecutionEngine/test-shift.ll +++ b/test/ExecutionEngine/test-shift.ll @@ -1,5 +1,5 @@ ; test shifts -void %main() { +int %main() { %i = add int 10, 0 %u = add uint 20, 0 %shamt = add ubyte 0, 0 @@ -23,5 +23,5 @@ void %main() { %temp07 = shr int %i, ubyte 6 ; 1 1 1 %temp08 = shr uint %u, ubyte 7 - ret void + ret int 0 } -- 2.34.1