summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/splinkersets01/splinkersets01.h
blob: 03391542df5c530cdcd3811319e33bbb73facb52 (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
47
48
49
50
51
52
/*
 * Copyright (c) 2015 embedded brains GmbH.  All rights reserved.
 *
 *  embedded brains GmbH
 *  Dornierstr. 4
 *  82178 Puchheim
 *  Germany
 *  <rtems@embedded-brains.de>
 *
 * 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_DECLARE(test_rw, const int *, a1);

RTEMS_LINKER_ROSET_ITEM_DECLARE(test_ro, const int *, ca2);

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 */