From e0fc5ca733521dcd926f9de6e17ba4dc3304da25 Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Wed, 10 Jul 2019 20:45:30 +0200 Subject: ir: Properly find the layout of incomplete arrays. So as to not pad stuff incorrectly, or needlessly add extra alignment, for example. Fixes #1589 --- tests/headers/incomplete-array-padding.h | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/headers/incomplete-array-padding.h (limited to 'tests/headers/incomplete-array-padding.h') diff --git a/tests/headers/incomplete-array-padding.h b/tests/headers/incomplete-array-padding.h new file mode 100644 index 00000000..3fcc4c1a --- /dev/null +++ b/tests/headers/incomplete-array-padding.h @@ -0,0 +1,4 @@ +struct foo { + char a : 1; + void *b[]; +}; -- cgit v1.2.3