Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust / tracepoint-weak-test.c
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 /* Test compiler support for weak symbols with hidden visibility. */
8 int __tracepoint_test_symbol1 __attribute__((weak, visibility("hidden")));
9 void *__tracepoint_test_symbol2 __attribute__((weak, visibility("hidden")));
10 struct {
11 char a[24];
12 } __tracepoint_test_symbol3 __attribute__((weak, visibility("hidden")));
13
14 __attribute__((visibility("hidden")))
15 void *lttng_ust_tp_check_weak_hidden1(void)
16 {
17 return &__tracepoint_test_symbol1;
18 }
19
20 __attribute__((visibility("hidden")))
21 void *lttng_ust_tp_check_weak_hidden2(void)
22 {
23 return &__tracepoint_test_symbol2;
24 }
25
26 __attribute__((visibility("hidden")))
27 void *lttng_ust_tp_check_weak_hidden3(void)
28 {
29 return &__tracepoint_test_symbol3;
30 }
This page took 0.029836 seconds and 4 git commands to generate.