gcc/testsuite/gdc.test/compilable/issue21880.d
raw| 1 | // REQUIRED_ARGS: -preview=dip1000 |
| 2 | // https://issues.dlang.org/show_bug.cgi?id=21880 |
| 3 | extern(C++): |
| 4 | void spawnProcess(scope const(char*)*, File = File()) @safe |
| 5 | { |
| 6 | } |
| 7 | |
| 8 | void pipeProcess(scope const(char*)* args) @safe |
| 9 | { |
| 10 | pipeProcessImpl!spawnProcess(args); |
| 11 | } |
| 12 | |
| 13 | void pipeProcessImpl(alias spawnFunc, Cmd)(Cmd command) @trusted |
| 14 | { |
| 15 | spawnFunc(command); |
| 16 | } |
| 17 | |
| 18 | struct File |
| 19 | { |
| 20 | ~this() @safe |
| 21 | { |
| 22 | } |
| 23 | } |