summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/user_headerunit
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-26 00:31:01 +0800
committerruki <[email protected]>2023-08-26 00:31:01 +0800
commitd649bd65c7f497e079c8dc8c11c345df1448d23b (patch)
tree2525790b4acfaeb7ef2bd4ee144c1524bbefda59 /tests/projects/c++/modules/user_headerunit
parentce42f68ec84a9d2e6fe819edb2e826c09a5366c3 (diff)
fix user headerunit
Diffstat (limited to 'tests/projects/c++/modules/user_headerunit')
-rw-r--r--tests/projects/c++/modules/user_headerunit/src/hello.mpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/projects/c++/modules/user_headerunit/src/hello.mpp b/tests/projects/c++/modules/user_headerunit/src/hello.mpp
index f2e4022f7..75c5b0866 100644
--- a/tests/projects/c++/modules/user_headerunit/src/hello.mpp
+++ b/tests/projects/c++/modules/user_headerunit/src/hello.mpp
@@ -1,9 +1,10 @@
module;
#include <cstdio>
-import "header.hpp";
export module hello;
+import "header.hpp";
+
export namespace hello {
void say(const char *arg) {
printf("%s: %s\n", FOO, arg);