Mercurial > projects > ldc
annotate test/bug42.d @ 78:2332006e1fa4 trunk
[svn r82] Fixed: Fall-through switch cases were broken.
author | lindquist |
---|---|
date | Wed, 31 Oct 2007 20:50:21 +0100 |
parents | |
children |
rev | line source |
---|---|
lindquist@78 | 1 module bug42; |
lindquist@78 | 2 |
lindquist@78 | 3 void main() { |
lindquist@78 | 4 int i = 2; |
lindquist@78 | 5 switch (i) { |
lindquist@78 | 6 case 0: |
lindquist@78 | 7 case 1: |
lindquist@78 | 8 default: |
lindquist@78 | 9 } |
lindquist@78 | 10 } |