summaryrefslogtreecommitdiff
path: root/libmprint/tests/test
diff options
context:
space:
mode:
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!