From b1578e624a53de98cbbbbf5a21ade120efdc5130 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Wed, 7 May 2025 15:42:28 +0200 Subject: (C++ modules support) add tests --- tests/projects/c++/modules/phony/src/hello.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/projects/c++/modules/phony/src/hello.cpp (limited to 'tests/projects/c++/modules/phony/src/hello.cpp') diff --git a/tests/projects/c++/modules/phony/src/hello.cpp b/tests/projects/c++/modules/phony/src/hello.cpp new file mode 100644 index 000000000..38ecf20e3 --- /dev/null +++ b/tests/projects/c++/modules/phony/src/hello.cpp @@ -0,0 +1,17 @@ +module; + +#include + +module hello; + +using namespace std; + +namespace hello { + say::say(int data) : data_(data) { + + } + + void say::hello() { + cout << "hello, say class: " << data_ << endl; + } +} // namespace hello -- cgit v1.3.1