Mercurial > projects > ldc
view test/throw1.d @ 257:4234b014a4f2 trunk
[svn r275] improved makewebstatistics
author | ChristianK |
---|---|
date | Thu, 12 Jun 2008 18:40:47 +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; }