Mercurial > projects > ldc
view test/throw1.d @ 219:761c8352f494 trunk
[svn r235] rough port of GDC's inline assembler code, unfinished
author | ChristianK |
---|---|
date | Thu, 05 Jun 2008 19:22:37 +0200 |
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; }