summaryrefslogtreecommitdiffstats
path: root/test cases/d/3 shared library/sub/libstuff.d
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/d/3 shared library/sub/libstuff.d')
-rw-r--r--test cases/d/3 shared library/sub/libstuff.d14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/d/3 shared library/sub/libstuff.d b/test cases/d/3 shared library/sub/libstuff.d
new file mode 100644
index 0000000..8205490
--- /dev/null
+++ b/test cases/d/3 shared library/sub/libstuff.d
@@ -0,0 +1,14 @@
+import std.stdio;
+import std.string : format;
+
+export int printLibraryString (string str)
+{
+ writeln ("Library says: %s".format (str));
+ return 4;
+}
+
+version (Windows)
+{
+ import core.sys.windows.dll;
+ mixin SimpleDllMain;
+}