diff options
author | Peter Wu <lekensteyn@gmail.com> | 2011-12-06 16:56:06 +0000 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2011-12-06 16:56:06 +0000 |
commit | f53bf21c6ad9fb3d2f1a40e2ce06816a6b2e3106 (patch) | |
tree | 0bdc837874ef233768bed43a02bd2ed3f8101e1f /tests/read-timer.c | |
parent | 6e8c92a69c6f7abe88d98e729e06bca6ccf17d72 (diff) | |
download | pp2cc-f53bf21c6ad9fb3d2f1a40e2ce06816a6b2e3106.tar.gz |
Add tests for memory address handling, fix compiler for negative constant
Diffstat (limited to 'tests/read-timer.c')
-rw-r--r-- | tests/read-timer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/read-timer.c b/tests/read-timer.c new file mode 100644 index 0000000..d7bb2c3 --- /dev/null +++ b/tests/read-timer.c @@ -0,0 +1,6 @@ +int timer; +int *timerp = (int*)-3; +void main() { + timer = *timerp; + g:goto g; +} |