From 2a231e4654c2569c347e27351a28ea6c4e95cf0c Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 10 Oct 2021 23:03:20 +0800 Subject: fix module tests --- tests/projects/c++/modules/class/src/hello_impl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/projects/c++/modules/class/src/hello_impl.cpp') diff --git a/tests/projects/c++/modules/class/src/hello_impl.cpp b/tests/projects/c++/modules/class/src/hello_impl.cpp index 6d0008fbb..b8b572f27 100644 --- a/tests/projects/c++/modules/class/src/hello_impl.cpp +++ b/tests/projects/c++/modules/class/src/hello_impl.cpp @@ -1,14 +1,13 @@ -module hello; - +module; #include - using namespace std; +module hello; + namespace hello { say::say(int data) : data_(data) { } - void say::hello() { cout << "hello, say class: " << data_ << endl; } -- cgit v1.3.1 From 6d94f1182d93b04f854f90599e3878fd5826939e Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 13 Oct 2021 00:40:31 +0800 Subject: fix modules test --- tests/projects/c++/modules/class/src/hello_impl.cpp | 2 +- tests/projects/c++/modules/impl_unit/src/hello_impl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/projects/c++/modules/class/src/hello_impl.cpp') diff --git a/tests/projects/c++/modules/class/src/hello_impl.cpp b/tests/projects/c++/modules/class/src/hello_impl.cpp index b8b572f27..5dd555a7a 100644 --- a/tests/projects/c++/modules/class/src/hello_impl.cpp +++ b/tests/projects/c++/modules/class/src/hello_impl.cpp @@ -1,9 +1,9 @@ module; #include -using namespace std; module hello; +using namespace std; namespace hello { say::say(int data) : data_(data) { 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 425c7aba4..eccfed5d3 100644 --- a/tests/projects/c++/modules/impl_unit/src/hello_impl.cpp +++ b/tests/projects/c++/modules/impl_unit/src/hello_impl.cpp @@ -1,8 +1,8 @@ module; #include -using namespace std; module hello; +using namespace std; namespace hello { void say_hi() { -- cgit v1.3.1