Add abi0 conflict tests
[lttng-ust.git] / tests / regression / abi0-conflict / libzero.c
diff --git a/tests/regression/abi0-conflict/libzero.c b/tests/regression/abi0-conflict/libzero.c
new file mode 100644 (file)
index 0000000..83f648c
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
+ */
+
+#include <stdio.h>
+
+#include "./libzero.h"
+#include "./fake-ust.h"
+
+/*
+ * Dummy function to ensure we are properly linked on libfakeust0.
+ */
+int libzero_dummy(void)
+{
+       struct lttng_probe_desc probe_desc;
+
+       return ltt_probe_register(&probe_desc);
+}
+
+void libzero(void)
+{
+       printf("libzero: this is libzero()\n");
+}
This page took 0.022913 seconds and 4 git commands to generate.