From c40c49de2c318ded0aa127e5faccc9054df6e30e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 9 Jan 2026 01:31:03 +0900 Subject: feat: support declarations to declare multiple members at once --- tests/struct_basics.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/struct_basics.sh') diff --git a/tests/struct_basics.sh b/tests/struct_basics.sh index 2dff3bb..13a50a5 100644 --- a/tests/struct_basics.sh +++ b/tests/struct_basics.sh @@ -118,3 +118,20 @@ int main() { return 0; } EOF + +test_exit_code 0 <<'EOF' +#include + +struct S { + int a, b; +}; + +struct T { + short *a, b, c[12]; +}; + +int main() { + ASSERT_EQ(8, sizeof(struct S)); + ASSERT_EQ(40, sizeof(struct T)); +} +EOF -- cgit v1.2.3-70-g09d2