Dead code elimination for entire modules and their init procs if empty (#10032)

* fixes #9798
* Change order of write modules
* Move datInit calls ahead of initStackBottom
This commit is contained in:
cooldome 2018-12-30 10:28:12 +00:00 • committed by Andreas Rumpf
commit 82c009a2cb
6 changed files with 176 additions and 99 deletions

View file

@ -1,5 +1,7 @@
discard """
ccodecheck: "\\i !@('struct tyObject_MyRefObject'[0-z]+' {')"
ccodecheck: "\\i !@('mymoduleInit')"
ccodecheck: "\\i @('mymoduleDatInit')"
output: "hello"
"""