mescc: Tinycc support: pointer arithmetic with variable.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 23 Aug 2017 05:08:16 +0000 (07:08 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 23 Aug 2017 05:08:16 +0000 (07:08 +0200)
commit0875ce655a50c470a302a093dcc13260ca764b37
tree5eb4f87b9c6aac8ddc91c3dba39056436af3a629
parent1e23dbaf173add835c8ebafc17ea0ee788e513bb
mescc: Tinycc support: pointer arithmetic with variable.

* module/language/c99/compiler.mes (expr->accu): Support pointer
  arithmetic with variable: p + i, p - i, p += i, p -= i.
* scaffold/tests/76-pointer-arithmetic.c (test): Test it.
module/language/c99/compiler.mes
scaffold/tests/76-pointer-arithmetic.c