summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/impl_unit
diff options
context:
space:
mode:
authorÂngelo Andrade Cirino <[email protected]>2021-07-15 10:49:02 -0300
committerÂngelo Andrade Cirino <[email protected]>2021-07-15 10:49:02 -0300
commitc1b1b841353e32d2df356b8765d1189bef3d2f11 (patch)
treef353fb9bfa958022694d1cb66445b8d5a8969a48 /tests/projects/c++/modules/impl_unit
parent2e3cad4e9c01e65f9c5da4b32be05ff4754f497b (diff)
Additional changes to modules support and corrected the tests
Diffstat (limited to 'tests/projects/c++/modules/impl_unit')
-rw-r--r--tests/projects/c++/modules/impl_unit/src/hello_impl.cpp4
-rw-r--r--tests/projects/c++/modules/impl_unit/xmake.lua3
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/projects/c++/modules/impl_unit/src/hello_impl.cpp b/tests/projects/c++/modules/impl_unit/src/hello_impl.cpp
index 1c9968a51..9cee17cfd 100644
--- a/tests/projects/c++/modules/impl_unit/src/hello_impl.cpp
+++ b/tests/projects/c++/modules/impl_unit/src/hello_impl.cpp
@@ -1,7 +1,7 @@
-// module;
-#include <iostream>
module hello;
+#include <iostream>
+
using namespace std;
namespace hello {
diff --git a/tests/projects/c++/modules/impl_unit/xmake.lua b/tests/projects/c++/modules/impl_unit/xmake.lua
index 3d19e0908..abe41d20a 100644
--- a/tests/projects/c++/modules/impl_unit/xmake.lua
+++ b/tests/projects/c++/modules/impl_unit/xmake.lua
@@ -1,5 +1,4 @@
+set_languages("c++20")
target("impl_unit")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
-
-