Skip to content

Commit

Permalink
Add @System to std.functional unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atilaneves committed Jul 1, 2016
1 parent d66eace commit 5d5ebb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/functional.d
Expand Up @@ -1100,7 +1100,7 @@ template memoize(alias fun, uint maxSize)
* When the $(D maxSize) parameter is specified, memoize will used
* a fixed size hash table to limit the number of cached entries.
*/
unittest // not @safe due to memoize
@system unittest // not @safe due to memoize
{
ulong fact(ulong n)
{
Expand All @@ -1112,7 +1112,7 @@ unittest // not @safe due to memoize
assert(fact(10) == 3628800);
}

unittest // not @safe due to memoize
@system unittest // not @safe due to memoize
{
import core.math : sqrt;
alias msqrt = memoize!(function double(double x) { return sqrt(x); });
Expand Down Expand Up @@ -1279,7 +1279,7 @@ auto toDelegate(F)(auto ref F fp) if (isCallable!(F))
}
}

unittest // not @safe due to toDelegate
@system unittest // not @safe due to toDelegate
{
static int inc(ref uint num) {
num++;
Expand Down

0 comments on commit 5d5ebb5

Please sign in to comment.