diff options
| author | GoaLitiuM <goalitium@kapsi.fi> | 2018-08-20 03:47:40 +0300 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-08-20 04:31:43 -0700 |
| commit | 7bcd31949f2fc761c43fee7cad08d46eaf851470 (patch) | |
| tree | d450edaaf7234687b7a868d5848b06479b923a3b /test cases | |
| parent | 38648bbb9f4e4cf6879b1b30ac4fc69816c87657 (diff) | |
| download | meson-7bcd31949f2fc761c43fee7cad08d46eaf851470.tar.gz | |
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.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/d/10 d cpp/libfile.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/d/10 d cpp/libfile.d b/test cases/d/10 d cpp/libfile.d index 88cb53e9b..7c4a449cf 100644 --- a/test cases/d/10 d cpp/libfile.d +++ b/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) { - writefln("Hello. Here is a number printed with D: %d", i); + printf("Hello. Here is a number printed with D: %d\n", i); } |
