From ce9f0d32c33333161cf9a5c2b7446d80fa0f13b5 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 31 Aug 2026 02:01:44 +0200 Subject: feat: add diagnostics module with source-anchored caret errors --- tests/sema_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/sema_test.c') diff --git a/tests/sema_test.c b/tests/sema_test.c index b7d3805..5dbdfa7 100644 --- a/tests/sema_test.c +++ b/tests/sema_test.c @@ -14,7 +14,8 @@ static bool analyze_source(const char* source) return false; } - bool ok = analyze_program(&program); + struct Source diagnostics = { "", source }; + bool ok = analyze_program(diagnostics, &program); free_program(&program); return ok; } -- cgit v1.3