From 7bcd31949f2fc761c43fee7cad08d46eaf851470 Mon Sep 17 00:00:00 2001 From: GoaLitiuM Date: Mon, 20 Aug 2018 03:47:40 +0300 Subject: 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. --- test cases/d/10 d cpp/libfile.d | 4 ++-- 1 file 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); } -- cgit v1.1