view tests/mini/bug44.d @ 1492:ef76f6e1693c

Add some passes that `opt` runs to the default pass list.
author Frits van Bommel <fvbommel wxs.nl>
date Thu, 11 Jun 2009 16:57:45 +0200
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();
}