From 0f6b759e11451b9cdae4b5f64fdcc82989161482 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Jul 2017 08:55:33 +0200 Subject: Add modularized version --- libmhello/tests/test/buildfile | 5 +++++ libmhello/tests/test/driver.cxx | 12 ++++++++++++ libmhello/tests/test/test.out | 1 + 3 files changed, 18 insertions(+) create mode 100644 libmhello/tests/test/buildfile create mode 100644 libmhello/tests/test/driver.cxx create mode 100644 libmhello/tests/test/test.out (limited to 'libmhello/tests/test') 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! -- cgit v1.1