summaryrefslogtreecommitdiff
path: root/libformat/tests/test
diff options
context:
space:
mode:
Diffstat (limited to 'libformat/tests/test')
-rw-r--r--libformat/tests/test/buildfile4
-rw-r--r--libformat/tests/test/driver.cxx13
-rw-r--r--libformat/tests/test/test.out1
3 files changed, 18 insertions, 0 deletions
diff --git a/libformat/tests/test/buildfile b/libformat/tests/test/buildfile
new file mode 100644
index 0000000..92d2804
--- /dev/null
+++ b/libformat/tests/test/buildfile
@@ -0,0 +1,4 @@
+import libs = libformat%lib{format}
+
+exe{driver}: cxx{driver} $libs
+exe{driver}: test.output = test.out
diff --git a/libformat/tests/test/driver.cxx b/libformat/tests/test/driver.cxx
new file mode 100644
index 0000000..fb2939d
--- /dev/null
+++ b/libformat/tests/test/driver.cxx
@@ -0,0 +1,13 @@
+// file: tests/test/driver.cxx -*- C++ -*-
+
+#include <iostream>
+
+#include <libformat/format.hxx>
+
+int
+main ()
+{
+ using namespace std;
+
+ cout << format ("Hello", "World") << endl;
+}
diff --git a/libformat/tests/test/test.out b/libformat/tests/test/test.out
new file mode 100644
index 0000000..8ab686e
--- /dev/null
+++ b/libformat/tests/test/test.out
@@ -0,0 +1 @@
+Hello, World!