summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/xmake_tests3/src/main.cpp
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-29 11:22:53 +0800
committerGitHub <[email protected]>2025-12-29 11:22:53 +0800
commit7c06c581c3f99a3eda87d88a334e42802175ddfd (patch)
treebb6e90071765465d8fb5e6e87fe2a3d94158f0bf /tests/projects/c++/modules/xmake_tests3/src/main.cpp
parent399988ff7a79d7d9ee994c8911bf6e69588dd7c5 (diff)
parent34c820992ce4dd7a11ed644f7ab253a98466c54d (diff)
Merge pull request #7172 from xmake-io/modules
prepare test targets in compile_commands
Diffstat (limited to 'tests/projects/c++/modules/xmake_tests3/src/main.cpp')
-rw-r--r--tests/projects/c++/modules/xmake_tests3/src/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/xmake_tests3/src/main.cpp b/tests/projects/c++/modules/xmake_tests3/src/main.cpp
new file mode 100644
index 000000000..4e2bb9b57
--- /dev/null
+++ b/tests/projects/c++/modules/xmake_tests3/src/main.cpp
@@ -0,0 +1,8 @@
+import std;
+import Foo;
+
+int main() {
+ foo();
+ std::printf("Hello from main\n");
+ return 0;
+}