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 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+ #include " mbed.h"
18
+ #include " greentea-client/test_env.h"
19
+ #include " unity/unity.h"
20
+ #include " utest/utest.h"
17
21
#include < stdio.h>
18
22
#include < string.h>
19
23
#include < algorithm>
22
26
#include < queue>
23
27
#include < map>
24
28
#include < math.h>
25
- #include " mbed.h"
26
- #include " greentea-client/test_env.h"
27
- #include " unity/unity.h"
28
- #include " utest/utest.h"
29
29
30
30
using namespace utest ::v1;
31
31
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ int testPacked() {
29
29
}
30
30
31
31
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
+
32
38
int testAlign () {
33
39
int failed = 0 ;
34
40
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
-
41
41
if (((uintptr_t )& a ) & 0x7 ){
42
42
failed ++ ;
43
43
}
You can’t perform that action at this time.
0 commit comments