aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/56 dedup compiler libs/liba/liba.c
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/unit/56 dedup compiler libs/liba/liba.c')
-rw-r--r--meson/test cases/unit/56 dedup compiler libs/liba/liba.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/meson/test cases/unit/56 dedup compiler libs/liba/liba.c b/meson/test cases/unit/56 dedup compiler libs/liba/liba.c
new file mode 100644
index 000000000..962d47f30
--- /dev/null
+++ b/meson/test cases/unit/56 dedup compiler libs/liba/liba.c
@@ -0,0 +1,18 @@
+#include "liba.h"
+
+static int val;
+
+void liba_add(int x)
+{
+ val += x;
+}
+
+void liba_sub(int x)
+{
+ val -= x;
+}
+
+int liba_get(void)
+{
+ return val;
+}