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

Commit

Permalink
add unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Jan 28, 2018
1 parent edf8a05 commit f810a0c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/core/demangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -2564,6 +2564,17 @@ version(unittest)
}
}

unittest
{
// https://issues.dlang.org/show_bug.cgi?id=18300
string s = demangle.mangleof;
foreach(i; 1..77)
{
char[] buf = new char[i];
auto ds = demangle(s, buf);
assert(ds == "pure nothrow @safe char[] core.demangle.demangle(const(char)[], char[])");
}
}

/*
*
Expand Down

0 comments on commit f810a0c

Please sign in to comment.