view test/throw1.d @ 110:e8da7856a260 trunk

[svn r114] Implemented the ClassInfo.offTi member.
author lindquist
date Thu, 22 Nov 2007 21:01:01 +0100
parents 5071469303d4
children
line wrap: on
line source

module throw1;

extern(C) int rand();

class C
{
}

void func(bool b)
{
    if (b)
        throw new C;
}

int main()
{
    bool b = true;
    try
    {
        func(b);
    }
    catch(Object)
    {
        return 1;
    }
    return 0;
}