2 * Copyright (C) 2023 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
9 static void fct_constructor2(void);
10 static void fct_destructor2(void);
12 void test_constructor2_same_unit_before(void) __attribute__((constructor
));
13 void test_constructor2_same_unit_before(void)
18 void test_destructor2_same_unit_before(void) __attribute__((destructor
));
19 void test_destructor2_same_unit_before(void)
24 Obj
g_obj_same_unit_before_define("global - same unit before define");
26 #define TRACEPOINT_DEFINE
29 Obj
g_obj_same_unit_after_define("global - same unit after define");
31 static void fct_constructor2(void)
33 tracepoint(tp
, constructor_c_same_unit_before_define
);
36 static void fct_destructor2(void)
38 tracepoint(tp
, destructor_c_same_unit_before_define
);
41 void test_constructor2_same_unit_after(void) __attribute__((constructor
));
42 void test_constructor2_same_unit_after(void)
44 tracepoint(tp
, constructor_c_same_unit_after_define
);
47 void test_destructor2_same_unit_after(void) __attribute__((destructor
));
48 void test_destructor2_same_unit_after(void)
50 tracepoint(tp
, destructor_c_same_unit_after_define
);