Mercurial > projects > ldc
view test/throw1.d @ 126:a2c2c3c1a73d trunk
[svn r130] fixed #28
author | lindquist |
---|---|
date | Wed, 28 Nov 2007 05:04:38 +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; }