Skip to content

Commit

Permalink
fix Issue 6565 - out 2D fixed-sized array
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Apr 2, 2015
1 parent 8df15a5 commit 838abc6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/runnable/xtest46.d
Original file line number Diff line number Diff line change
Expand Up @@ -5021,6 +5021,18 @@ void test6488()
d.seconds();
}

/***************************************************/
// 6565

void foo6565(out int[2][2] m) {}

void test6565()
{
int[2][2] mat = [[1, 2], [3, 4]];
foo6565(mat);
assert(mat == [[0, 0], [0, 0]]);
}

/***************************************************/
// 6836

Expand Down Expand Up @@ -7580,6 +7592,7 @@ int main()
test5696();
test6084();
test6488();
test6565();
test6836();
test6837();
test6927();
Expand Down

0 comments on commit 838abc6

Please sign in to comment.