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 --- .../c++/modules/modulemap.modulemap/src/hello.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/projects/c++/modules/modulemap.modulemap/src/hello.h (limited to 'tests/projects/c++/modules/modulemap.modulemap/src/hello.h') diff --git a/tests/projects/c++/modules/modulemap.modulemap/src/hello.h b/tests/projects/c++/modules/modulemap.modulemap/src/hello.h new file mode 100644 index 000000000..743934c26 --- /dev/null +++ b/tests/projects/c++/modules/modulemap.modulemap/src/hello.h @@ -0,0 +1,18 @@ +#pragma once + +import std; +using namespace std; + +namespace hello { + inline void say_hi() { + cout << "hello hi!" << endl; + } + + inline void say_hello() { + cout << "hello world!" << endl; + } + + inline void say_xz() { + cout << "hello xz!" << endl; + } +} \ No newline at end of file -- cgit v1.3.1