view tangotests/r.d @ 279:a137ed004205 trunk

[svn r300] Removed some win32 stuff that was causing problems on mingw32.
author lindquist
date Fri, 20 Jun 2008 22:25:07 +0200
parents 0dec7b3727ea
children
line wrap: on
line source

extern(C) int printf(char*, ...);

class C
{
    void dump()
    {
        printf("C dumped\n");
    }
}

void heap()
{
    auto c = new C;
    c.dump();
}

void stack()
{
    scope c = new C;
    c.dump();
}

void main()
{
    heap();
    stack();
}