Skip to content

Commit

Permalink
Test cases for 4001 and 3779
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Clugston committed May 10, 2011
1 parent 7ff48a5 commit 808105a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/compilable/interpret3.d
Expand Up @@ -774,3 +774,22 @@ int wconcat(wstring replace)
return 1;
}
static assert(wconcat("X"w));

/*******************************************
Bug 4001: A Space Oddity
*******************************************/

int space() { return 4001; }

void oddity4001(int q)
{
const int bowie = space();
static assert(space() == 4001);
static assert(bowie == 4001);
}

/*******************************************
Bug 3779
*******************************************/

static const bug3779 = ["123"][0][$-1];

0 comments on commit 808105a

Please sign in to comment.