stackinit: Add old-style zero-init syntax to struct tests
authorKees Cook <kees@kernel.org>
Mon, 27 Jan 2025 19:10:26 +0000 (11:10 -0800)
committerKees Cook <kees@kernel.org>
Thu, 30 Jan 2025 16:48:28 +0000 (08:48 -0800)
commitad9f265c7328d9d73a9d1edbd52f4415cc764296
treee9f173a636534db348a290f02aca4f3a7db93afc
parenta9a5e0bdc5a77a7c662ad4be0ad661f0b0d5e99d
stackinit: Add old-style zero-init syntax to struct tests

The deprecated way to do a full zero init of a structure is with "= { 0 }",
but we weren't testing this style. Add it.

Link: https://lore.kernel.org/r/20250127191031.245214-1-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
lib/stackinit_kunit.c