File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
mbed_drivers/stl_features
mbedmicro-mbed/attributes Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17+ #include " mbed.h"
18+ #include " greentea-client/test_env.h"
19+ #include " unity/unity.h"
20+ #include " utest/utest.h"
1721#include < stdio.h>
1822#include < string.h>
1923#include < algorithm>
2226#include < queue>
2327#include < map>
2428#include < math.h>
25- #include " mbed.h"
26- #include " greentea-client/test_env.h"
27- #include " unity/unity.h"
28- #include " utest/utest.h"
2929
3030using namespace utest ::v1;
3131
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ int testPacked() {
2929}
3030
3131
32+ MBED_ALIGN (8 ) char a ;
33+ MBED_ALIGN (8 ) char b ;
34+ MBED_ALIGN (16 ) char c ;
35+ MBED_ALIGN (8 ) char d ;
36+ MBED_ALIGN (16 ) char e ;
37+
3238int testAlign () {
3339 int failed = 0 ;
3440
35- MBED_ALIGN (8 ) char a ;
36- MBED_ALIGN (8 ) char b ;
37- MBED_ALIGN (16 ) char c ;
38- MBED_ALIGN (8 ) char d ;
39- MBED_ALIGN (16 ) char e ;
40-
4141 if (((uintptr_t )& a ) & 0x7 ){
4242 failed ++ ;
4343 }
You can’t perform that action at this time.
0 commit comments