summaryrefslogtreecommitdiff
path: root/tests/projects/other/object_only/src/foo.h
diff options
context:
space:
mode:
authorruki <[email protected]>2025-06-27 22:43:33 +0800
committerruki <[email protected]>2025-06-27 10:22:06 +0800
commit0720b2309a011c26e341dafb50877622e7bb8f17 (patch)
tree47faff05bff6f7993620b39c6498110c6348d37a /tests/projects/other/object_only/src/foo.h
parente2c60ab5bc58d4e0a769591b1ad58285d638ccca (diff)
add object only test
Diffstat (limited to 'tests/projects/other/object_only/src/foo.h')
-rw-r--r--tests/projects/other/object_only/src/foo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/projects/other/object_only/src/foo.h b/tests/projects/other/object_only/src/foo.h
new file mode 100644
index 000000000..d2506bca9
--- /dev/null
+++ b/tests/projects/other/object_only/src/foo.h
@@ -0,0 +1,9 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int add(int a, int b);
+
+#ifdef __cplusplus
+}
+#endif