mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
This changes the API of xfa from
XFA(array_name, prio) type element_name = INITIALIZER;
to
XFA(type, array_name, prio) element_name = INITIALIZER;
this allows forcing natural alignment of the type, fixing failing tests
on `native64`.
29 lines
848 B
C
29 lines
848 B
C
/*
|
|
* Copyright (C) 2018 Eistec AB
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @addtogroup unittests
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Data elements for the core/xfa unit test
|
|
*
|
|
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
|
|
*/
|
|
#include "xfa.h"
|
|
#include "tests-core-xfa.h"
|
|
|
|
XFA(xfatest_t, xfatest, 0) _xfatest2 = { .val = 0xbeef, .text = "another test string" };
|
|
XFA_CONST(xfatest_t, xfatest_const, 0) _xfatest_const2 =
|
|
{ .val = 32444, .text = "const string xfa 2" };
|
|
XFA(xfatest_t, xfatest_use, 0) _xfatest_use2 = { .val = 11111, .text = "xfatest_use2" };
|
|
XFA_CONST(xfatest_t, xfatest_use_const, 0) _xfatest_use_const2 =
|
|
{ .val = 22222, .text = "xfatest_use_const2" };
|
|
|
|
/** @} */
|