summaryrefslogtreecommitdiff
path: root/libmprint/tests/test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-20 08:55:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-20 08:55:37 +0200
commit01399cea3ff5d5d64c987d06c882a1c7c9cdd878 (patch)
treeb0df201f3bec90a94e6d373b71448d97ea6fa5fc /libmprint/tests/test
parentd8c1605ced6e9445b8ef6fdf7ab5dde4021d454a (diff)
Add modularized version
Diffstat (limited to 'libmprint/tests/test')
-rw-r--r--libmprint/tests/test/buildfile5
-rw-r--r--libmprint/tests/test/driver.cxx10
-rw-r--r--libmprint/tests/test/test.out1
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!