diff options
| author | ruki <[email protected]> | 2022-11-04 22:44:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-04 22:44:52 +0800 |
| commit | 6c819d681111add7afa70920b788d8d56f620d77 (patch) | |
| tree | 9a7f2af95e6e16541fd05dc7dec3957f79df69b3 /tests/projects/c++/modules/stdmodules/test/test.cpp | |
| parent | 9fe1d17945bc670c0ec3b394c39e17e0cedb7b44 (diff) | |
| parent | 0fdefd2f7280db640ed09df068e09f98649ce7ec (diff) | |
Merge pull request #3016 from xmake-io/module
Improve clang/gcc/msvc to better support std modules
Diffstat (limited to 'tests/projects/c++/modules/stdmodules/test/test.cpp')
| -rw-r--r-- | tests/projects/c++/modules/stdmodules/test/test.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/stdmodules/test/test.cpp b/tests/projects/c++/modules/stdmodules/test/test.cpp new file mode 100644 index 000000000..a12813c24 --- /dev/null +++ b/tests/projects/c++/modules/stdmodules/test/test.cpp @@ -0,0 +1,13 @@ +#ifdef _MSC_VER +import std.core; +#else +import std; +#endif + +import my_module; + +using namespace std; + +int main(int argc, char** argv) { + cout << my_sum(1, 1) << endl; +} |
