tests: Add C versions of gen-ust-events-constructor
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / 05-c-tp-after-provider.c
diff --git a/tests/utils/testapp/gen-ust-events-constructor/05-c-tp-after-provider.c b/tests/utils/testapp/gen-ust-events-constructor/05-c-tp-after-provider.c
new file mode 100644 (file)
index 0000000..4bc566d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2024 Kienan Stewart <kstewart@efficios.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
+#include "tp.h"
+
+void test_constructor5(void) __attribute__((constructor));
+void test_constructor5(void)
+{
+       tracepoint(tp, constructor_c_across_units_after_provider);
+}
+
+void test_destructor5(void) __attribute__((destructor));
+void test_destructor5(void)
+{
+       tracepoint(tp, destructor_c_across_units_after_provider);
+}
This page took 0.024006 seconds and 4 git commands to generate.