File Index
Files and directories
Sign in
FILE

nolibc-test-linkage.c

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/nolibc/nolibc-test-linkage.c C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2
 3#include "nolibc-test-linkage.h"
 4
 5#include <errno.h>
 6
 7void *linkage_test_errno_addr(void)
 8{
 9	return &errno;
10}
11
12int linkage_test_constructor_test_value = 0;
13
14__attribute__((constructor))
15static void constructor1(void)
16{
17	linkage_test_constructor_test_value |= 1 << 0;
18}
19
20__attribute__((constructor))
21static void constructor2(void)
22{
23	linkage_test_constructor_test_value |= 1 << 1;
24}
~/ Read-only file preview.