mescc: Tinycc support: Switch with heterogeneous body, non-last default.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 17 May 2018 05:40:01 +0000 (07:40 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 17 May 2018 05:40:01 +0000 (07:40 +0200)
commit7dfc88e22c63d903804274848eda12844f918c02
tree2b9d685294023c5fb3d3af90487d598f8048abd2
parent8f8a4be83dce855e5a92dc16eb7a48b0954d700d
mescc: Tinycc support: Switch with heterogeneous body, non-last default.

* module/language/c99/compiler.mes (switch->info): New function.
  (ast->info): Use it for switch.
  (clause->info, statements->clauses): Remove.
* scaffold/tests/44-switch.c (default_first): Test it.
module/language/c99/compiler.mes
scaffold/tests/44-switch.c