summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/shared/src/foo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/templates/c++/shared/src/foo.cpp')
-rw-r--r--xmake/templates/c++/shared/src/foo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/templates/c++/shared/src/foo.cpp b/xmake/templates/c++/shared/src/foo.cpp
new file mode 100644
index 000000000..1a1fb3425
--- /dev/null
+++ b/xmake/templates/c++/shared/src/foo.cpp
@@ -0,0 +1,5 @@
+#include "foo.h"
+
+int add(int a, int b) {
+ return a + b;
+}