From fad9e24cff5aff88c5635b010076bf6d39e659e7 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Mon, 6 Jun 2016 23:37:57 -0700 Subject: [PATCH] fix Issue 5305 - intrinsic functions have @safe stripped of them in release mode --- test/runnable/test5305.d | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/runnable/test5305.d diff --git a/test/runnable/test5305.d b/test/runnable/test5305.d new file mode 100644 index 000000000000..e1c274d31ca6 --- /dev/null +++ b/test/runnable/test5305.d @@ -0,0 +1,7 @@ +// https://issues.dlang.org/show_bug.cgi?id=5305 + +import std.math; +void map(real function(real) f) { } +int main() { map(&sqrt); return 0; } + +