Skip to content

Commit

Permalink
Merge pull request #7249 from WalterBright/fix5332
Browse files Browse the repository at this point in the history
fix Issue 5332 - Undefined reference to zero length array
  • Loading branch information
WalterBright committed Oct 26, 2017
2 parents 9276f9f + 239c352 commit ff4bdb6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/runnable/test42.d
Expand Up @@ -6110,6 +6110,16 @@ void test7997()
foreach (f; foos) {}
}

/***************************************************/
// https://issues.dlang.org/show_bug.cgi?id=5332

int[0] arr5332;

void test5332()
{
auto a = arr5332;
}

/***************************************************/

int main()
Expand Down Expand Up @@ -6411,6 +6421,7 @@ int main()
test16530();
test252();
test7997();
test5332();

writefln("Success");
return 0;
Expand Down

0 comments on commit ff4bdb6

Please sign in to comment.