summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/indirect-link/cbits/impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/indirect-link/cbits/impl.c')
-rw-r--r--third_party/bazel/rules_haskell/tests/indirect-link/cbits/impl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/bazel/rules_haskell/tests/indirect-link/cbits/impl.c b/third_party/bazel/rules_haskell/tests/indirect-link/cbits/impl.c
new file mode 100644
index 000000000000..666ce43962a3
--- /dev/null
+++ b/third_party/bazel/rules_haskell/tests/indirect-link/cbits/impl.c
@@ -0,0 +1,9 @@
+static int thing;
+
+int real_get_thing(void) {
+  return thing;
+}
+
+void real_set_thing(int value) {
+  thing = value;
+}