summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/splinkersets01/item-ca.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-10 08:41:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-10 08:43:28 +0200
commit2769554243c43eee9fd5066a5cd770ab89ec47a3 (patch)
tree45c291a750db0aa19a4a56b44a614ba9eb5bb85c /testsuites/sptests/splinkersets01/item-ca.c
parentbsps/sparc: Simplify memory initialization (diff)
downloadrtems-2769554243c43eee9fd5066a5cd770ab89ec47a3.tar.bz2
splinkersets01: Test linker sets in library
Make sure that the linker sets work if placed in a library (this is how they are used in RTEMS).
Diffstat (limited to '')
-rw-r--r--testsuites/sptests/splinkersets01/item-ca.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuites/sptests/splinkersets01/item-ca.c b/testsuites/sptests/splinkersets01/item-ca.c
new file mode 100644
index 0000000000..23937db925
--- /dev/null
+++ b/testsuites/sptests/splinkersets01/item-ca.c
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2015, 2016 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "splinkersets01.h"
+
+RTEMS_LINKER_ROSET_ITEM_ORDERED(test_ro, const int *, ca2, OC) = &ca[2];