2 * Copyright (C) 2023 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
12 /* Use tracepoints defined and provided by shared libraries. */
13 void test_constructor_so() __attribute__((constructor
));
14 void test_constructor_so()
16 tracepoint(tp_so_c
, constructor_c_provider_shared_library
);
19 void test_destructor_so() __attribute__((destructor
));
20 void test_destructor_so()
22 tracepoint(tp_so_c
, destructor_c_provider_shared_library
);
25 Objso
g_objso_shared_library("global - shared library define and provider");
29 const Obj
l_obj("main() local");
30 const Objso
l_objso("main() local - shared library define and provider");