tests: Add C versions of gen-ust-events-constructor
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / 01-c-tp-before-define.c
CommitLineData
21b65d7f
KS
1/*
2 * Copyright (C) 2024 Kienan Stewart <kstewart@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#include "tp.h"
8
9void test_constructor1(void) __attribute__((constructor));
10void test_constructor1(void)
11{
12 tracepoint(tp, constructor_c_across_units_before_define);
13}
14
15void test_destructor1(void) __attribute__((destructor));
16void test_destructor1(void)
17{
18 tracepoint(tp, destructor_c_across_units_before_define);
19}
This page took 0.023393 seconds and 4 git commands to generate.