From 6c3b06fe1cc97c73606659aacd4eb2c856d9eadc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Fri, 13 Oct 2006 12:47:47 +0000 Subject: [PATCH] slightly extended test --- ir/be/test/ll_call.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ir/be/test/ll_call.c b/ir/be/test/ll_call.c index c14a22285..40f201fc5 100644 --- a/ir/be/test/ll_call.c +++ b/ir/be/test/ll_call.c @@ -1,6 +1,7 @@ #include -#ifdef __GNUC__ +#if 1 +//#ifdef __GNUC__ long long fac(long long n) { if(n < 1) @@ -10,9 +11,19 @@ long long fac(long long n) } int main(void) { + printf("Result:%lld (should be 3628800)\n",fac(10)); + printf("Result:%lld (should be 39916800)\n",fac(11)); + printf("Result:%lld (should be 479001600)\n",fac(12)); + printf("Result:%lld (should be 6227020800)\n",fac(13)); + printf("Result:%lld (should be 87178291200)\n",fac(14)); + printf("Result:%lld (should be 1307674368000)\n",fac(15)); + printf("Result:%lld (should be 20922789888000)\n",fac(16)); + printf("Result:%lld (should be 355687428096000)\n",fac(17)); + printf("Result:%lld (should be 6402373705728000)\n",fac(18)); + printf("Result:%lld (should be 121645100408832000)\n",fac(19)); printf("Result:%lld (should be 2432902008176640000)\n",fac(20)); - return fac(20) != 2432902008176640000ULL; + return fac(20) != 2432902008176640000ULL; } #else -- 2.20.1