Add abi0 conflict tests
[lttng-ust.git] / tests / regression / abi0-conflict / libone.c
diff --git a/tests/regression/abi0-conflict/libone.c b/tests/regression/abi0-conflict/libone.c
new file mode 100644 (file)
index 0000000..089b7e8
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
+ */
+
+#include <stdio.h>
+#include <lttng/ust-fork.h>
+
+#include "./libone.h"
+
+/*
+ * Dummy function to ensure we are properly linked on liblttng-ust.so.1.
+ */
+void libone_dummy(void)
+{
+       lttng_ust_after_setns();
+}
+
+void libone(void)
+{
+       printf("libone: this is libone()\n");
+}
This page took 0.023357 seconds and 4 git commands to generate.