diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-15 19:18:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-15 19:18:01 +0000 |
commit | 1b3512ff974ed4aa0acadced11215e40b053b8d5 (patch) | |
tree | 10d7eea24f93a1551ecb8d7eb9ea96c5e95b089b | |
parent | 634b352fa6ccb7313520dcf552359569bf1b7f47 (diff) |
Make main do some simple work without requiring main arguments to be happy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@842 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/fib.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/fib.ll b/test/fib.ll index db0bca5d14..933311dc3d 100644 --- a/test/fib.ll +++ b/test/fib.ll @@ -19,7 +19,7 @@ RecurseCase: ret ulong %result end -ulong "main"(int %argc, sbyte ** %argv) +ulong "realmain"(int %argc, sbyte ** %argv) begin seteq int %argc, 2 ; {bool}:0 br bool %0, label %HasArg, label %Continue @@ -34,3 +34,11 @@ Continue: %F = call ulong(ulong) *%fib(ulong %N) ret ulong %F end + +int "main"() +begin + %Result = call ulong %fib(ulong 10) + %Result = cast ulong %Result to int + ret int %Result +end + |