Mercurial > projects > dang
view tests/code/switch_3.d @ 38:52eb0eb92e91 new_gen
Testcases for switch
author | Anders Halager <halager@gmail.com> |
---|---|
date | Sun, 20 Apr 2008 23:53:42 +0200 |
parents | |
children | 2c5a8061aa4a |
line wrap: on
line source
void main(int x) { switch (x) { case 1, 2: x = 2; return; case 3, 4: x = 1; return; default: } }