view tests/code/switch_3.d @ 209:42e663451371

Renamed some of the actions. Declarations now have it's own action.
author Anders Johnsen <skabet@gmail.com>
date Tue, 12 Aug 2008 19:05:17 +0200
parents 2c5a8061aa4a
children
line wrap: on
line source


void main()
{
    int x;
    switch (x)
    {
        case 1, 2:
            x = 2;
            return;
        case 3, 4:
            x = 1;
            return;
        default:
    }
}