Mercurial > projects > ldc
view test/throw1.d @ 112:368547b1cbe6 trunk
[svn r116] Implemented the ClassInfo.destructor field.
author | lindquist |
---|---|
date | Thu, 22 Nov 2007 22:30:10 +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; }