Mercurial > projects > ldc
view test/throw1.d @ 253:c6f25edd6ef3 trunk
[svn r270] Forgot the test for struct debug info.
author | lindquist |
---|---|
date | Thu, 12 Jun 2008 17:01:31 +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; }