summaryrefslogtreecommitdiff
path: root/libmhello/tests/test
diff options
context:
space:
mode:
Diffstat (limited to 'libmhello/tests/test')
-rw-r--r--libmhello/tests/test/buildfile5
-rw-r--r--libmhello/tests/test/driver.cxx12
-rw-r--r--libmhello/tests/test/test.out1
3 files changed, 18 insertions, 0 deletions
diff --git a/libmhello/tests/test/buildfile b/libmhello/tests/test/buildfile
new file mode 100644
index 0000000..7253fc6
--- /dev/null
+++ b/libmhello/tests/test/buildfile
@@ -0,0 +1,5 @@
+import libs = libmhello%lib{mhello}
+import libs += libstd-modules%liba{std-modules}
+
+exe{driver}: cxx{driver} $libs
+exe{driver}: test.output = test.out
diff --git a/libmhello/tests/test/driver.cxx b/libmhello/tests/test/driver.cxx
new file mode 100644
index 0000000..cf6af49
--- /dev/null
+++ b/libmhello/tests/test/driver.cxx
@@ -0,0 +1,12 @@
+// file: tests/test/driver.cxx -*- C++ -*-
+
+import std.core;
+import hello;
+
+int
+main ()
+{
+ using hello::say;
+
+ say ("World");
+}
diff --git a/libmhello/tests/test/test.out b/libmhello/tests/test/test.out
new file mode 100644
index 0000000..8ab686e
--- /dev/null
+++ b/libmhello/tests/test/test.out
@@ -0,0 +1 @@
+Hello, World!