summaryrefslogtreecommitdiff
path: root/test cases/d/10 d cpp/libfile.d
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-25 22:25:55 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-05-02 22:50:15 +0300
commit1918c0d231f0c04b1a57c2fdf057b50c8aa7312b (patch)
tree074fd9ede2fe8ee8c3e63822b1c89de39cd967ff /test cases/d/10 d cpp/libfile.d
parent77b72e8573bbd8d6d04cb11aacdba604b8649f4d (diff)
downloadmeson-1918c0d231f0c04b1a57c2fdf057b50c8aa7312b.tar.gz
Can combine D and C++ in a single target. Closes #3125.
Diffstat (limited to 'test cases/d/10 d cpp/libfile.d')
-rw-r--r--test cases/d/10 d cpp/libfile.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/test cases/d/10 d cpp/libfile.d b/test cases/d/10 d cpp/libfile.d
new file mode 100644
index 000000000..88cb53e9b
--- /dev/null
+++ b/test cases/d/10 d cpp/libfile.d
@@ -0,0 +1,5 @@
+import std.stdio;
+
+extern (C++) void print_hello(int i) {
+ writefln("Hello. Here is a number printed with D: %d", i);
+}