aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-04-18 16:10:11 +0200
committerlemon <lsof@mailbox.org>2026-04-18 16:12:11 +0200
commit7c25529f0a525ec4b4dcf40d847e2734c2349d5d (patch)
tree74ad0d064bf7d3f338582351effae9c60daa5a3b /test
parent0178e0161f46bd396c2282207ea1894b295f692e (diff)
c: fix some more static initializer edge cases
Diffstat (limited to 'test')
-rw-r--r--test/22-decl.c6
1 files changed, 6 insertions, 0 deletions
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() {
}