Skip to content

Commit

Permalink
#993. Fix expected size of the packed struct
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov committed May 4, 2021
1 parent 954c3b1 commit 055b5c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions LibTest/ffi/Packed/Packed_A01_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ class S16 extends Struct {
external int y;
}


void main() {
Expect.equals(12, sizeOf<S1>());
Expect.equals(12, sizeOf<S2>());
Expect.equals(12, sizeOf<S4>());
Expect.equals(16, sizeOf<S8>());
Expect.equals(16, sizeOf<S16>());
Expect.isTrue(sizeOf<S8>() >= 12);
Expect.isTrue(sizeOf<S16>() >= 12);
}

0 comments on commit 055b5c9

Please sign in to comment.