diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-04 15:29:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-04 15:29:53 +0200 |
commit | f05b71bd468bac9358d9fae169b4ca147f0e97fb (patch) | |
tree | ca5d4fb260fd86b8c0a961994f05b4658de05ba6 /tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test | |
parent | f45372f06b077bb85886a48f03cf876941a20539 (diff) |
Update libhello in tests
Diffstat (limited to 'tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test')
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/buildfile new file mode 100644 index 0000000..a46969d --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/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/pkg/1/build2.org/common/libhello-1.0.0/tests/test/driver.cxx b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/driver.cxx new file mode 100644 index 0000000..59bfb2d --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/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/pkg/1/build2.org/common/libhello-1.0.0/tests/test/test.out b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/test.out new file mode 100644 index 0000000..8ab686e --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0/tests/test/test.out @@ -0,0 +1 @@ +Hello, World! |