diff options
Diffstat (limited to 'libmhello/libmhello/hello.cxx')
-rw-r--r-- | libmhello/libmhello/hello.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libmhello/libmhello/hello.cxx b/libmhello/libmhello/hello.cxx new file mode 100644 index 0000000..ff01860 --- /dev/null +++ b/libmhello/libmhello/hello.cxx @@ -0,0 +1,20 @@ +// file: libmhello/hello.cxx -*- C++ -*- + +module hello; + +#ifdef __clang__ +import std.core; +#endif + +import std.io; + +using namespace std; + +namespace hello +{ + void + say (const string& n) + { + cout << "Hello, " << n << '!' << endl; + } +} |