Mercurial > projects > ldc
view tests/mini/structinit3.d @ 1414:303e6422f785
Fix regression dstress.nocompile.finally_07. The EnclosingTryFinally handler
should not be set when emitting the landing pad's finally code.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 23 May 2009 09:02:36 +0200 |
parents | 794c8af186ce |
children |
line wrap: on
line source
struct S { int a; int b; int c; int d = 7; } void test(int i) { S s = { 1, i }; // q.a = 1, q.b = i, q.c = 0, q.d = 7 assert(s.a == 1); assert(s.b == i); assert(s.c == 0); // line 8 assert(s.d == 7); } void main() { test(42); }