summaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test')
-rw-r--r--tests/test/buildfile4
-rw-r--r--tests/test/driver.cxx11
-rw-r--r--tests/test/test.out1
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/test/buildfile b/tests/test/buildfile
new file mode 100644
index 0000000..a46969d
--- /dev/null
+++ b/tests/test/buildfile
@@ -0,0 +1,4 @@
+import libs = libhello%lib{hello}
+
+exe{driver}: cxx{driver} $libs
+exe{driver}: test.output = test.out
diff --git a/tests/test/driver.cxx b/tests/test/driver.cxx
new file mode 100644
index 0000000..59bfb2d
--- /dev/null
+++ b/tests/test/driver.cxx
@@ -0,0 +1,11 @@
+// file: tests/test/driver.cxx -*- C++ -*-
+
+#include <hello/hello>
+
+int
+main ()
+{
+ using hello::say;
+
+ say ("World");
+}
diff --git a/tests/test/test.out b/tests/test/test.out
new file mode 100644
index 0000000..8ab686e
--- /dev/null
+++ b/tests/test/test.out
@@ -0,0 +1 @@
+Hello, World!