view test/switch2.d @ 225:74701ba40398 trunk

[svn r241] Fixed missing terminator for void main() with inline asm block.
author lindquist
date Fri, 06 Jun 2008 22:30:31 +0200
parents 288fe1029e1f
children d9d5d59873d8
line wrap: on
line source

module switch2;

void main()
{
    int i = 2;
    switch(i)
    {
    case 0: assert(0);
    case 1,2: printf("hello world\n"); break;
    default: assert(0);
    }
}