summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/class/src/hello_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/c++/modules/class/src/hello_impl.cpp')
-rw-r--r--tests/projects/c++/modules/class/src/hello_impl.cpp16
1 files changed, 16 insertions, 0 deletions
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 <iostream>
+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;
+ }
+}