From 7c25529f0a525ec4b4dcf40d847e2734c2349d5d Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 18 Apr 2026 16:10:11 +0200 Subject: c: fix some more static initializer edge cases --- test/22-decl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/22-decl.c') diff --git a/test/22-decl.c b/test/22-decl.c index ddb1a57..a14b776 100644 --- a/test/22-decl.c +++ b/test/22-decl.c @@ -8,6 +8,12 @@ int a[]; int a[100]; int a[]; +static unsigned local; +extern unsigned local; + +typedef struct foo { char r; } foo_t; +static const foo_t T = ((foo_t) { 3 }); + int main() { } -- cgit v1.2.3