summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/shared/src/main.cpp
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-09 18:06:16 +0800
committerruki <[email protected]>2026-08-09 18:06:16 +0800
commit5f5daf64c504e1103a355f45bf925a5149b03e24 (patch)
treeaf4d584b3c7badc1df56038cdb29099b4f3e99fd /xmake/templates/c++/shared/src/main.cpp
parent6ac4ea833193a4319a1eb6e5f588d1877fd48064 (diff)
move templates dir
Diffstat (limited to 'xmake/templates/c++/shared/src/main.cpp')
-rw-r--r--xmake/templates/c++/shared/src/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/templates/c++/shared/src/main.cpp b/xmake/templates/c++/shared/src/main.cpp
new file mode 100644
index 000000000..3834ee4d3
--- /dev/null
+++ b/xmake/templates/c++/shared/src/main.cpp
@@ -0,0 +1,7 @@
+#include "foo.h"
+#include <iostream>
+
+int main(int argc, char **argv) {
+ std::cout << "add(1, 2) = " << add(1, 2) << std::endl;
+ return 0;
+}