forked from Imagelibrary/rtems
@@ -432,6 +432,12 @@
|
||||
* - Checked that the RTEMS_ZERO_LENGTH_ARRAY macro produces a structure
|
||||
* similar to a structure with one element.
|
||||
*
|
||||
* - Use the RTEMS_DEFINE_GLOBAL_SYMBOL() macro at the beginning of this file
|
||||
* and assign the address of the symbol to an object.
|
||||
*
|
||||
* - Check that the RTEMS_DEFINE_GLOBAL_SYMBOL() macro defines a global
|
||||
* symbol with the correct value.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -534,6 +540,12 @@ RTEMS_DEFINE_GLOBAL_SYMBOL(
|
||||
RTEMS_SYMBOL_NAME( global_symbol_base ) + GLOBAL_SYMBOL_VALULE( abc )
|
||||
);
|
||||
|
||||
RTEMS_DECLARE_GLOBAL_SYMBOL( global_symbol_2 );
|
||||
|
||||
RTEMS_DEFINE_GLOBAL_SYMBOL( global_symbol_2, 0x123 );
|
||||
|
||||
static const char * const volatile global_symbol_2_object = global_symbol_2;
|
||||
|
||||
static int deprecated_func( int i ) RTEMS_DEPRECATED;
|
||||
static int deprecated_func( int i )
|
||||
{
|
||||
@@ -1937,12 +1949,27 @@ static void RtemsBasedefsValBasedefs_Action_55( void )
|
||||
offsetof( zero_length_struct_1, array ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Use the RTEMS_DEFINE_GLOBAL_SYMBOL() macro at the beginning of this
|
||||
* file and assign the address of the symbol to an object.
|
||||
*/
|
||||
static void RtemsBasedefsValBasedefs_Action_56( void )
|
||||
{
|
||||
/* No action */
|
||||
|
||||
/*
|
||||
* Check that the RTEMS_DEFINE_GLOBAL_SYMBOL() macro defines a global symbol
|
||||
* with the correct value.
|
||||
*/
|
||||
T_step_eq_uptr( 129, (uintptr_t) global_symbol_2_object, 0x123 );
|
||||
}
|
||||
|
||||
/**
|
||||
* @fn void T_case_body_RtemsBasedefsValBasedefs( void )
|
||||
*/
|
||||
T_TEST_CASE( RtemsBasedefsValBasedefs )
|
||||
{
|
||||
T_plan( 129 );
|
||||
T_plan( 130 );
|
||||
|
||||
RtemsBasedefsValBasedefs_Action_0();
|
||||
RtemsBasedefsValBasedefs_Action_1();
|
||||
@@ -2000,6 +2027,7 @@ T_TEST_CASE( RtemsBasedefsValBasedefs )
|
||||
RtemsBasedefsValBasedefs_Action_53();
|
||||
RtemsBasedefsValBasedefs_Action_54();
|
||||
RtemsBasedefsValBasedefs_Action_55();
|
||||
RtemsBasedefsValBasedefs_Action_56();
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
Reference in New Issue
Block a user