diff options
Diffstat (limited to '')
-rw-r--r-- | test cases/d/3 shared library/libstuff.d | 14 | ||||
-rw-r--r-- | test cases/d/3 shared library/libstuff.di | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test cases/d/3 shared library/libstuff.d b/test cases/d/3 shared library/libstuff.d new file mode 100644 index 0000000..8205490 --- /dev/null +++ b/test cases/d/3 shared library/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; +} diff --git a/test cases/d/3 shared library/libstuff.di b/test cases/d/3 shared library/libstuff.di new file mode 100644 index 0000000..b6454b1 --- /dev/null +++ b/test cases/d/3 shared library/libstuff.di @@ -0,0 +1,3 @@ +module libstuff; + +int printLibraryString (string str); |