From 39a4b859d4d4f76d2616b2c6e6a697dc261daa1a Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Fri, 17 Apr 2009 01:01:23 +0900 Subject: x86-64: Fix cast from integers to pointers. Now, ./tcc -run -DTCC_TARGET_X86_64 tcc.c -run tcctest.c works! --- tcctest.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tcctest.c') diff --git a/tcctest.c b/tcctest.c index f8b3a35..cfbfe72 100644 --- a/tcctest.c +++ b/tcctest.c @@ -1158,6 +1158,10 @@ void cast_test() (int)p, (unsigned int)p, (long)p, (unsigned long)p, (long long)p, (unsigned long long)p); + + /* from integers to pointers */ + printf("%p %p %p %p\n", + (void *)a, (void *)b, (void *)c, (void *)d); } /* initializers tests */ -- cgit v1.3.1