diff options
| author | ruki <[email protected]> | 2019-09-07 00:49:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-06 22:57:05 +0800 |
| commit | 1d6857de2bc044f45f76270256fad011a591abfc (patch) | |
| tree | 2a028539f470eaee636744990e15c3c42b39edbd /tests/projects/c++ | |
| parent | 0f7e7701f27eec0118930eddefba0d0ca3269d38 (diff) | |
add modulemap tests
Diffstat (limited to 'tests/projects/c++')
4 files changed, 0 insertions, 37 deletions
diff --git a/tests/projects/c++/modules/modulemap.modulemap/src/hello.h b/tests/projects/c++/modules/modulemap.modulemap/src/hello.h deleted file mode 100644 index 743934c26..000000000 --- a/tests/projects/c++/modules/modulemap.modulemap/src/hello.h +++ /dev/null @@ -1,18 +0,0 @@ -#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 diff --git a/tests/projects/c++/modules/modulemap.modulemap/src/main.cpp b/tests/projects/c++/modules/modulemap.modulemap/src/main.cpp deleted file mode 100644 index 6fffc01f7..000000000 --- a/tests/projects/c++/modules/modulemap.modulemap/src/main.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// #include "hello.h" -import hello; - -int main() { - hello::say_hello(); - hello::say_xz(); - hello::say_hi(); - return 0; -}
\ No newline at end of file diff --git a/tests/projects/c++/modules/modulemap.modulemap/src/module.modulemap b/tests/projects/c++/modules/modulemap.modulemap/src/module.modulemap deleted file mode 100644 index 69c787ee2..000000000 --- a/tests/projects/c++/modules/modulemap.modulemap/src/module.modulemap +++ /dev/null @@ -1,4 +0,0 @@ -module hello { - header "hello.h" - export * -} diff --git a/tests/projects/c++/modules/modulemap.modulemap/xmake.lua b/tests/projects/c++/modules/modulemap.modulemap/xmake.lua deleted file mode 100644 index 979f7a22e..000000000 --- a/tests/projects/c++/modules/modulemap.modulemap/xmake.lua +++ /dev/null @@ -1,6 +0,0 @@ -target("modulemap") - set_kind("binary") - add_files("src/*.cpp", "src/*.mpp") - set_languages("c++20") - - |
