Skip to content

Commit

Permalink
Add test for issue 14817
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Olshansky committed Sep 12, 2015
1 parent 1e7246b commit f9a6e0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/file.d
Expand Up @@ -2887,6 +2887,7 @@ private void copyImpl(const(char)[] f, const(char)[] t, const(FSChar)* fromz, co

unittest
{
import std.algorithm, std.file; // issue 14817
auto t1 = deleteme, t2 = deleteme~"2";
scope(exit) foreach (t; [t1, t2]) if (t.exists) t.remove();
write(t1, "1");
Expand Down

0 comments on commit f9a6e0b

Please sign in to comment.