Mercurial > projects > ldc
view test/switch3.d @ 261:5723b7385c25 trunk
[svn r279] fixed bug in makewebstatistics, regenerated output
author | ChristianK |
---|---|
date | Fri, 13 Jun 2008 08:21:11 +0200 |
parents | 36ab367572df |
children | d9d5d59873d8 |
line wrap: on
line source
module switch3; void main() { char[] str = "hello"; int i; switch(str) { case "world": i = 1; assert(0); case "hello": i = 2; break; case "a","b","c": i = 3; assert(0); default: i = 4; assert(0); } assert(i == 2); printf("SUCCESS\n"); }