view tests/mini/bug44.d @ 1397:fdfc4060bcec

fix missing 'test' mnemonic and add several variations
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Tue, 19 May 2009 11:58:54 -0600
parents 44f08170f4ef
children
line wrap: on
line source

module bug44;

struct rgb
{
    long l;
}

void foo()
{
}

rgb test() {
  scope(exit) foo();
  return rgb();
}

void main()
{
    rgb r = test();
}