diff --git a/test/compilable/interpret3.d b/test/compilable/interpret3.d index 0f37060ef829..a3d7157b8294 100644 --- a/test/compilable/interpret3.d +++ b/test/compilable/interpret3.d @@ -1315,6 +1315,24 @@ static assert(!is(typeof(compiles!({ }() )))); +/************************************************** + Bug 6100 +**************************************************/ + +struct S6100 +{ + int a; +} + +S6100 init6100(int x) +{ + S6100 s = S6100(x); + return s; +} + +static const S6100[2] s6100a = [ init6100(1), init6100(2) ]; +static assert(s6100a[0].a == 1); + /************************************************** Bug 6053 -- ICE involving pointers **************************************************/