mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Merge pull request #8431 from dkorpel/fix-std-path-variadic-test
Fix std.path unittest returning dangling pointer
This commit is contained in:
commit
0745f76249
1 changed files with 1 additions and 1 deletions
|
@ -1519,7 +1519,7 @@ if (isSomeChar!C)
|
|||
import std.range;
|
||||
// ir() wraps an array in a plain (i.e. non-forward) input range, so that
|
||||
// we can test both code paths
|
||||
InputRange!(C[]) ir(C)(C[][] p...) { return inputRangeObject(p); }
|
||||
InputRange!(C[]) ir(C)(C[][] p...) { return inputRangeObject(p.dup); }
|
||||
version (Posix)
|
||||
{
|
||||
assert(buildPath("foo") == "foo");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue