It is undefined behaviour to call D I/O functions without initializing D runtime first. Simplify the test so it will work in all platforms.pull/4062/head
parent
38648bbb9f
commit
7bcd31949f
1 changed files with 2 additions and 2 deletions
@ -1,5 +1,5 @@ |
||||
import std.stdio; |
||||
import core.stdc.stdio; |
||||
|
||||
extern (C++) void print_hello(int i) { |
||||
writefln("Hello. Here is a number printed with D: %d", i); |
||||
printf("Hello. Here is a number printed with D: %d\n", i); |
||||
} |
||||
|
Loading…
Reference in new issue