diff options
| author | Shinichiro Hamaji <shinichiro.hamaji _at_ gmail.com> | 2009-04-17 01:01:23 +0900 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:02 +0200 |
| commit | 39a4b859d4d4f76d2616b2c6e6a697dc261daa1a (patch) | |
| tree | e6bd21487847c461111fc2c1ee8133b9765dc7a6 /tcctest.c | |
| parent | 51a7f163ad4a363953ae744afbc12cd7bd381097 (diff) | |
| download | tinycc-39a4b859d4d4f76d2616b2c6e6a697dc261daa1a.tar.gz tinycc-39a4b859d4d4f76d2616b2c6e6a697dc261daa1a.tar.bz2 | |
x86-64: Fix cast from integers to pointers.
Now,
./tcc -run -DTCC_TARGET_X86_64 tcc.c -run tcctest.c
works!
Diffstat (limited to 'tcctest.c')
| -rw-r--r-- | tcctest.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |
