| 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_constructor1(void) __attribute__((constructor)); |
| 11 | void test_constructor1(void) |
| 12 | { |
| 13 | tracepoint(tp, constructor_c_across_units_before_define); |
| 14 | } |
| 15 | |
| 16 | void test_destructor1(void) __attribute__((destructor)); |
| 17 | void test_destructor1(void) |
| 18 | { |
| 19 | tracepoint(tp, destructor_c_across_units_before_define); |
| 20 | } |
| 21 | |
| 22 | Obj g_obj_across_units_before_define("global - across units before define"); |