Mercurial > projects > ldc
view tests/mini/bug42.d @ 1647:638a823ace45
Strange workaround for returning from within 'void main()'. The new dmdfe sets the ReturnStatement->exp to null. Fixed bug #391.
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Wed, 10 Mar 2010 19:35:14 -0700 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module bug42; void main() { int i = 2; switch (i) { case 0: case 1: default: } }