This library contains code that extends and simplifies different operations
for C language based programs.
Revisión | ceb9f3b36be6953c4a5f5f1b1da2b09edbd280bf (tree) |
---|---|
Tiempo | 2022-10-05 09:58:53 |
Autor | Sergey Gusarov <laborer2008@gmai...> |
Commiter | Sergey Gusarov |
test_attributes: Test CT_ALIGNED() only for limited platforms
@@ -92,13 +92,19 @@ | ||
92 | 92 | deprecatedFunction(); |
93 | 93 | } |
94 | 94 | |
95 | -#define ALIGN_VALUE 512 | |
96 | - | |
97 | 95 | void testAligned(void) |
98 | 96 | { |
97 | +#if defined (CT_COMPL_GCC_EMULATION) || defined (CT_COMPL_MSVC) || defined (CT_LANG_C11) || defined (CT_LANG_CXX11)\ | |
98 | + || (defined (CT_COMPL_BCC) && defined (__cplusplus)) | |
99 | + | |
100 | + #define ALIGN_VALUE 512 | |
101 | + | |
99 | 102 | CT_ALIGNED(ALIGN_VALUE) int a; |
100 | 103 | |
101 | 104 | TEST_ASSERT_TRUE(((uint64_t)(&a)) % ALIGN_VALUE == 0); |
105 | + | |
106 | + #undef ALIGN_VALUE | |
107 | +#endif | |
102 | 108 | } |
103 | 109 | |
104 | 110 | void testFunction(void) |