tests: Add C versions of gen-ust-events-constructor
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / main_c-a.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-a_c.h"
8#include "tp.h"
9
10/* Use tracepoints defined and provided by static archive. */
11void test_constructor_a(void) __attribute__((constructor));
12void test_constructor_a(void)
13{
14 tracepoint(tp_a_c, constructor_c_provider_static_archive);
15}
16
17void test_destructor_a(void) __attribute__((destructor));
18void test_destructor_a(void)
19{
20 tracepoint(tp_a_c, destructor_c_provider_static_archive);
21}
22
23int main(void)
24{
25 tracepoint(tp, main);
26 return 0;
27}
This page took 0.02295 seconds and 4 git commands to generate.