| 1 | /* |
| 2 | * Copyright (C) 2023 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1-only |
| 5 | */ |
| 6 | |
| 7 | #include "obj.h" |
| 8 | #include "tp.h" |
| 9 | |
| 10 | void test_constructor3() __attribute__((constructor)); |
| 11 | void test_constructor3() |
| 12 | { |
| 13 | tracepoint(tp, constructor_c_across_units_after_define); |
| 14 | } |
| 15 | |
| 16 | void test_destructor3() __attribute__((destructor)); |
| 17 | void test_destructor3() |
| 18 | { |
| 19 | tracepoint(tp, destructor_c_across_units_after_define); |
| 20 | } |
| 21 | |
| 22 | Obj g_obj_across_units_after_define("global - across units after define"); |