From 1cb3447236d4a6fe8857d3bc97eb9418491951e7 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Sat, 9 Sep 2017 12:10:49 +0200 Subject: [PATCH] Adjust @safe-ty of 64-bit real unittest. --- std/conv.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/std/conv.d b/std/conv.d index 1869f0508e8..e2cba07744f 100644 --- a/std/conv.d +++ b/std/conv.d @@ -3154,9 +3154,10 @@ if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum assert(to!string(r) == to!string(real.max)); } -//Tests for the double implementation -@safe unittest +// Tests for the double implementation +@system unittest { + // @system because strtod is not @safe. static if (real.mant_dig == 53) { import core.stdc.stdlib, std.exception, std.math;