Remove dependency to D runtime in mixed language tests

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
GoaLitiuM 6 years ago committed by Nirbheek Chauhan
parent 38648bbb9f
commit 7bcd31949f
  1. 4
      test cases/d/10 d cpp/libfile.d

@ -1,5 +1,5 @@
import std.stdio; import core.stdc.stdio;
extern (C++) void print_hello(int i) { 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…
Cancel
Save