dmd/compiler/test/compilable/issue21880.d
2022-07-09 18:53:07 +02:00

23 lines
397 B
D

// REQUIRED_ARGS: -preview=dip1000
// https://issues.dlang.org/show_bug.cgi?id=21880
extern(C++):
void spawnProcess(scope const(char*)*, File = File()) @safe
{
}
void pipeProcess(scope const(char*)* args) @safe
{
pipeProcessImpl!spawnProcess(args);
}
void pipeProcessImpl(alias spawnFunc, Cmd)(Cmd command) @trusted
{
spawnFunc(command);
}
struct File
{
~this() @safe
{
}
}