Mercurial > projects > ldc
view test/throw1.d @ 269:967178e31a13 trunk
[svn r290] Forgot to remove a #define in mem.c
author | lindquist |
---|---|
date | Sun, 15 Jun 2008 18:57:11 +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; }