diff options
| author | ruki <[email protected]> | 2019-09-06 00:13:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-05 19:21:07 +0800 |
| commit | 5f3ad152caf5509dd6e8a8249872c8969be1d49f (patch) | |
| tree | 7bf28a9ce47129605e7b7c52e90e284106adad89 /tests/projects/c++/modules/hello/src/hello.mpp | |
| parent | a8061f2bed770641ea7137e6211aea50bbe6abd9 (diff) | |
add cppmodule rules and tests
Diffstat (limited to 'tests/projects/c++/modules/hello/src/hello.mpp')
| -rw-r--r-- | tests/projects/c++/modules/hello/src/hello.mpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/hello/src/hello.mpp b/tests/projects/c++/modules/hello/src/hello.mpp new file mode 100644 index 000000000..fbd7fd6ad --- /dev/null +++ b/tests/projects/c++/modules/hello/src/hello.mpp @@ -0,0 +1,10 @@ +// module; +#include <cstdio> +export module hello; +using namespace std; + +export namespace hello { + void say(const char* str) { + printf("%s\n", str); + } +}
\ No newline at end of file |
