Mercurial > projects > dang
view tests/code/switch_4.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
int main(int x) { switch (x) { case 1, 2: x = 2; return x; case 3, 4: x = 1; return x; default: return 0; } }