summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/splinkersets01/splinkersets01.h
blob: 05812047654be49191167d80fedc27066d52b751 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * Copyright (C) 2015, 2016 embedded brains GmbH & Co. KG
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.com/license/LICENSE.
 */

#ifndef SPLINKERSET01_H
#define SPLINKERSET01_H

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include <rtems/linkersets.h>

extern const int a[4];

extern const int ca[5];

RTEMS_LINKER_RWSET_DECLARE(test_rw, const int *);

RTEMS_LINKER_ROSET_DECLARE(test_ro, const int *);

RTEMS_LINKER_RWSET_DECLARE(test_content_rw, char);

RTEMS_LINKER_ROSET_DECLARE(test_content_ro, char);

RTEMS_LINKER_RWSET_ITEM_ORDERED_DECLARE(test_rw, const int *, a1, 1);

RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE(test_ro, const int *, ca2, OC);

RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern int content_rw_1);
RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_2);
RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_3);

RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const int content_ro_1);
RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_2);
RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_3);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* SPLINKERSET01_H */