view test/g.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 3d60e549b0c2
children d9d5d59873d8
line wrap: on
line source

module g;

void func(char[] str)
{
    printf("%.*s\n", str.length, str.ptr);
}

void main()
{
    char[] arr = "Hello World!";
    func(arr);
    func("ditto");
}