From c1b1b841353e32d2df356b8765d1189bef3d2f11 Mon Sep 17 00:00:00 2001 From: Ângelo Andrade Cirino Date: Thu, 15 Jul 2021 10:49:02 -0300 Subject: Additional changes to modules support and corrected the tests --- tests/projects/c++/modules/inline_and_template/src/hello.mpp | 4 ++-- tests/projects/c++/modules/inline_and_template/src/say.mpp | 4 ++-- tests/projects/c++/modules/inline_and_template/xmake.lua | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'tests/projects/c++/modules/inline_and_template') diff --git a/tests/projects/c++/modules/inline_and_template/src/hello.mpp b/tests/projects/c++/modules/inline_and_template/src/hello.mpp index 1796f0b11..c36d54783 100644 --- a/tests/projects/c++/modules/inline_and_template/src/hello.mpp +++ b/tests/projects/c++/modules/inline_and_template/src/hello.mpp @@ -1,7 +1,7 @@ -// module; -#include export module hello; +#include + export namespace hello { inline void say_hello() { std::printf("hello world!\n"); diff --git a/tests/projects/c++/modules/inline_and_template/src/say.mpp b/tests/projects/c++/modules/inline_and_template/src/say.mpp index d09e14d28..b4d05a5f4 100644 --- a/tests/projects/c++/modules/inline_and_template/src/say.mpp +++ b/tests/projects/c++/modules/inline_and_template/src/say.mpp @@ -1,7 +1,7 @@ -// module; -#include export module say; +#include + export class say { public: template diff --git a/tests/projects/c++/modules/inline_and_template/xmake.lua b/tests/projects/c++/modules/inline_and_template/xmake.lua index c0722cccc..4810edb85 100644 --- a/tests/projects/c++/modules/inline_and_template/xmake.lua +++ b/tests/projects/c++/modules/inline_and_template/xmake.lua @@ -1,6 +1,4 @@ +set_languages("c++20") target("inline_and_template") set_kind("binary") add_files("src/*.cpp", "src/*.mpp") - set_languages("c++11") - - -- cgit v1.3.1