Mercurial > projects > ldc
view test/throw1.d @ 140:ffcc9a2f3d9d trunk
[svn r144] fixes
author | lindquist |
---|---|
date | Wed, 23 Jan 2008 12:56:09 +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; }