summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/user_headerunit/src/hello.mpp
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-08-03 02:36:31 +0200
committerArthur LAURENT <[email protected]>2022-08-03 02:36:31 +0200
commitdcf5a1dfa3e592563093e862e0bb4ecd2ac3b3ba (patch)
tree542dc30f36b8c3f1647ce6ec78cfe353f28716ec /tests/projects/c++/modules/user_headerunit/src/hello.mpp
parent92b8b6629b6c3b4b59d78835b7e4719313c04ae1 (diff)
[C++20 Modules] Add tests for headerunits
Diffstat (limited to 'tests/projects/c++/modules/user_headerunit/src/hello.mpp')
-rw-r--r--tests/projects/c++/modules/user_headerunit/src/hello.mpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/user_headerunit/src/hello.mpp b/tests/projects/c++/modules/user_headerunit/src/hello.mpp
new file mode 100644
index 000000000..5b2f434ad
--- /dev/null
+++ b/tests/projects/c++/modules/user_headerunit/src/hello.mpp
@@ -0,0 +1,10 @@
+module;
+#include <cstdio>
+
+export module hello;
+
+export namespace hello {
+ void say(const char *arg) {
+ printf("%s\n", arg);
+ }
+}