Skip to content

Commit

Permalink
Test case for 6100
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Clugston committed Jun 9, 2011
1 parent 52181b0 commit 2603f9f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/compilable/interpret3.d
Expand Up @@ -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
**************************************************/
Expand Down

0 comments on commit 2603f9f

Please sign in to comment.