From 7210427c931d41fd52608ee5a502ea54414d6606 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 6 Sep 2019 22:51:54 +0800 Subject: add some c++ module tests --- tests/projects/c++/modules/class/src/hello_impl.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/projects/c++/modules/class/src/hello_impl.cpp (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 new file mode 100644 index 000000000..b929c453b --- /dev/null +++ b/tests/projects/c++/modules/class/src/hello_impl.cpp @@ -0,0 +1,16 @@ +// module; +#include +module hello; + +// import std.core; +using namespace std; + +namespace hello { + say::say(int data) : data_(data) { + + } + + void say::hello() { + cout << "hello, say class: " << data_ << endl; + } +} -- cgit v1.3.1