From 62e73da6124758c2e8c2a75defac2da092a93941 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Sun, 15 Mar 2009 14:50:38 +0900 Subject: A uint64 bug fix on x86-64 64bit unsigned literal was handled as 32bit integer. Added a unittest to catch this. --- tcctest.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tcctest.c') diff --git a/tcctest.c b/tcctest.c index 6e716df..050f522 100644 --- a/tcctest.c +++ b/tcctest.c @@ -1693,6 +1693,8 @@ void longlong_test(void) a = 68719476720LL; b = 4294967295LL; printf("%d %d %d %d\n", a > b, a < b, a >= b, a <= b); + + printf("%Ld\n", 0x123456789LLU); } void manyarg_test(void) -- cgit v1.3.1