aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorGoaLitiuM <goalitium@kapsi.fi>2018-08-20 03:47:40 +0300
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-08-20 04:31:43 -0700
commit7bcd31949f2fc761c43fee7cad08d46eaf851470 (patch)
treed450edaaf7234687b7a868d5848b06479b923a3b /test cases
parent38648bbb9f4e4cf6879b1b30ac4fc69816c87657 (diff)
downloadmeson-7bcd31949f2fc761c43fee7cad08d46eaf851470.zip
meson-7bcd31949f2fc761c43fee7cad08d46eaf851470.tar.gz
meson-7bcd31949f2fc761c43fee7cad08d46eaf851470.tar.bz2
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.d4
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 88cb53e..7c4a449 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);
}