Skip to content

Commit

Permalink
[test] wiring/no_fixture: add MISC_02_alignment test
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy committed Jan 18, 2024
1 parent 38ced0d commit 1ecdf00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions user/tests/wiring/no_fixture/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ test(MISC_01_map) {
assertEqual(map(5.0, 0.0, 10.0, 0.0, 15.0), 7.5);
assertEqual(map(5.5, 10.0, 10.0, 10.0, 10.0), 5.5); // Shouldn't cause division by zero
}

test(MISC_02_alignment) {
// This should just build correctly
static __attribute__((used, aligned(256))) uint8_t test[63] = {};
assertEqual((int)test[0], 0);
}

0 comments on commit 1ecdf00

Please sign in to comment.