summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/hello
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/c++/modules/hello')
-rw-r--r--tests/projects/c++/modules/hello/src/hello.mpp5
-rw-r--r--tests/projects/c++/modules/hello/xmake.lua3
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/projects/c++/modules/hello/src/hello.mpp b/tests/projects/c++/modules/hello/src/hello.mpp
index fbd7fd6ad..9bbd036f0 100644
--- a/tests/projects/c++/modules/hello/src/hello.mpp
+++ b/tests/projects/c++/modules/hello/src/hello.mpp
@@ -1,6 +1,7 @@
-// module;
-#include <cstdio>
export module hello;
+
+#include <cstdio>
+
using namespace std;
export namespace hello {
diff --git a/tests/projects/c++/modules/hello/xmake.lua b/tests/projects/c++/modules/hello/xmake.lua
index 6c3bff19a..2315cf287 100644
--- a/tests/projects/c++/modules/hello/xmake.lua
+++ b/tests/projects/c++/modules/hello/xmake.lua
@@ -1,5 +1,4 @@
+set_languages("c++20")
target("hello")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
-
-