x86-64: Fix cast from integers to pointers.

Now,

./tcc -run -DTCC_TARGET_X86_64 tcc.c -run tcctest.c

works!
This commit is contained in:
Shinichiro Hamaji
2009-04-17 01:01:23 +09:00
committed by grischka
parent 51a7f163ad
commit 39a4b859d4
2 changed files with 13 additions and 3 deletions

View File

@ -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 */