From c88c2706a205ae7e2a050d861a70a4bb61180918 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sat, 1 Feb 2014 15:26:48 +0800 Subject: [PATCH] Test long long to float conversions --- tests/tcctest.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/tcctest.c b/tests/tcctest.c index e84f291..f302572 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -1670,21 +1670,29 @@ void prefix ## fcast(type a)\ double da;\ LONG_DOUBLE la;\ int ia;\ + long long lla;\ unsigned int ua;\ + unsigned long long llua;\ type b;\ fa = a;\ da = a;\ la = a;\ printf("ftof: %f %f %Lf\n", fa, da, la);\ ia = (int)a;\ + lla = (long long)a;\ ua = (unsigned int)a;\ + llua = (unsigned long long)a;\ printf("ftoi: %d %u\n", ia, ua);\ ia = -1234;\ ua = 0x81234500;\ b = ia;\ printf("itof: " fmt "\n", b);\ + b = lla;\ + printf("lltof: " fmt "\n", b);\ b = ua;\ printf("utof: " fmt "\n", b);\ + b = llua;\ + printf("ulltof: " fmt "\n", b);\ }\ \ float prefix ## retf(type a) { return a; }\