Skip to content

Commit

Permalink
Test case for 6120
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Clugston committed Jun 9, 2011
1 parent 846aa26 commit 4c6d0d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/compilable/interpret3.d
Expand Up @@ -1333,6 +1333,18 @@ S6100 init6100(int x)
static const S6100[2] s6100a = [ init6100(1), init6100(2) ];
static assert(s6100a[0].a == 1);

/**************************************************
Bug 6120
**************************************************/

struct Bug6120(T) {
this(int x) { }
}
static assert({
auto s = Bug6120!int(0);
return true;
}());

/**************************************************
Bug 6053 -- ICE involving pointers
**************************************************/
Expand Down

0 comments on commit 4c6d0d1

Please sign in to comment.