From 2f456ce4e210a4437c8063a3a6579c18dc762afb Mon Sep 17 00:00:00 2001 From: Jesse Rosenstock Date: Sun, 28 Jun 2020 21:17:42 +0200 Subject: [PATCH] Add comment explaining four_bits_with_int --- test/val/bitfield.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/val/bitfield.c b/test/val/bitfield.c index b203b9cce..ce791b634 100644 --- a/test/val/bitfield.c +++ b/test/val/bitfield.c @@ -38,6 +38,11 @@ static void test_four_bits(void) } } +/* + Logic is somewhat diferent for bit-fields that end a struct vs + having additional fields. +*/ + static struct four_bits_with_int { unsigned int x : 4; unsigned int y;