diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-10-30 13:37:02 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-11-02 11:25:10 -0400 |
commit | 1466fb2400af367db9d0cb1041020278a871a4f3 (patch) | |
tree | 3baa1b772811da48f3d6eb596c0b79c4e868aac6 /tests/alloc.c | |
parent | bed9b9171cad11e3a8dd0dea90856779a683a9a5 (diff) | |
download | bfs-1466fb2400af367db9d0cb1041020278a871a4f3.tar.xz |
alloc: Stop supporting pathological flexible array ABIs
Diffstat (limited to 'tests/alloc.c')
-rw-r--r-- | tests/alloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/alloc.c b/tests/alloc.c index 046613a..5fc934b 100644 --- a/tests/alloc.c +++ b/tests/alloc.c @@ -30,10 +30,6 @@ void check_alloc(void) { size_t too_many = SIZE_MAX / sizeof(int) + 1; bfs_check(sizeof_flex(struct flexible, bar, too_many) == align_floor(alignof(struct flexible), SIZE_MAX)); - // Corner case: sizeof(type) > align_ceil(alignof(type), offsetof(type, member)) - // Doesn't happen in typical ABIs - bfs_check(flex_size(8, 16, 4, 4, 1) == 16); - // Make sure we detect allocation size overflows #if __GNUC__ && !__clang__ # pragma GCC diagnostic ignored "-Walloc-size-larger-than=" |