Skip to content

Commit

Permalink
Merge pull request #4752 from ibuclaw/nrvotest
Browse files Browse the repository at this point in the history
Increase static array size in NRVO test
  • Loading branch information
dnadlinger committed Jun 20, 2015
2 parents 3cdb5df + 451f728 commit 2f1b85a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/runnable/inline.d
Original file line number Diff line number Diff line change
Expand Up @@ -464,19 +464,21 @@ void test11322()

debug(NRVO) static void* p11394a, p11394b, p11394c;

static int[3] make11394(in int x) pure
static int[5] make11394(in int x) pure
{
typeof(return) a;
a[0] = x;
a[1] = x + 1;
a[2] = x + 2;
a[3] = x + 3;
a[4] = x + 4;
debug(NRVO) p11394a = cast(void*)a.ptr;
return a;
}

struct Bar11394
{
immutable int[3] arr;
immutable int[5] arr;

this(int x)
{
Expand Down

0 comments on commit 2f1b85a

Please sign in to comment.