view test/arrays2.d @ 282:74348f162225 trunk

[svn r303] Start a new basicblock behind a HaltExp to prevent compiler errors.
author ChristianK
date Sat, 21 Jun 2008 00:00:56 +0200
parents c53b6e3fe49a
children
line wrap: on
line source

char[] get()
{
    return "hello";
}

void param(char[] s)
{
}

void refparam(ref char[] s)
{
}

void main()
{
    char[] dstr = get();
    param(dstr);
    refparam(dstr);
}