Mercurial > projects > ldc
view tests/mini/bug308_double_finally.d @ 1531:7120a74e9ae2
Remove duplicated code
This was implemented for windows in llvm r73379
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Sat, 11 Jul 2009 13:58:23 +0200 |
parents | f9285cf14c0d |
children |
line wrap: on
line source
extern(C) int printf(char*, ...); long foo(ref int p) { try { return 0; } finally { p++; throw new Object; } } void main() { int p = 0; try { foo(p); assert(0); } catch { } printf("Number of types scope(exit) was executed : %d\n", p); assert(p == 1); }