Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Add another unittest to trigger 18300
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Feb 27, 2018
1 parent f16bd2d commit 9815566
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/core/demangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,21 @@ unittest
}
}

unittest
{
// https://issues.dlang.org/show_bug.cgi?id=18300
string s = "_D1";
string expected = "int ";
foreach (_; 0..10_000)
{
s ~= "a1";
expected ~= "a.";
}
s ~= "FiZi";
expected ~= "F";
assert(s.demangle == expected);
}

/*
*
*/
Expand Down

0 comments on commit 9815566

Please sign in to comment.