diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-20 08:55:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-20 08:55:37 +0200 |
commit | 01399cea3ff5d5d64c987d06c882a1c7c9cdd878 (patch) | |
tree | b0df201f3bec90a94e6d373b71448d97ea6fa5fc /libmprint/tests/test | |
parent | d8c1605ced6e9445b8ef6fdf7ab5dde4021d454a (diff) |
Add modularized version
Diffstat (limited to 'libmprint/tests/test')
-rw-r--r-- | libmprint/tests/test/buildfile | 5 | ||||
-rw-r--r-- | libmprint/tests/test/driver.cxx | 10 | ||||
-rw-r--r-- | libmprint/tests/test/test.out | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/libmprint/tests/test/buildfile b/libmprint/tests/test/buildfile new file mode 100644 index 0000000..0fe3fea --- /dev/null +++ b/libmprint/tests/test/buildfile @@ -0,0 +1,5 @@ +import libs = libmprint%lib{mprint} +import libs += libstd-modules%liba{std-modules} + +exe{driver}: cxx{driver} $libs +exe{driver}: test.output = test.out diff --git a/libmprint/tests/test/driver.cxx b/libmprint/tests/test/driver.cxx new file mode 100644 index 0000000..32fa1ae --- /dev/null +++ b/libmprint/tests/test/driver.cxx @@ -0,0 +1,10 @@ +// file: tests/test/driver.cxx -*- C++ -*- + +import std.core; +import print; + +int +main () +{ + print::to_stdout ("Hello, World!"); +} diff --git a/libmprint/tests/test/test.out b/libmprint/tests/test/test.out new file mode 100644 index 0000000..8ab686e --- /dev/null +++ b/libmprint/tests/test/test.out @@ -0,0 +1 @@ +Hello, World! |