aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-31 02:01:44 +0200
committerhachem <im@hachem.wtf>2026-08-31 02:01:44 +0200
commitce9f0d32c33333161cf9a5c2b7446d80fa0f13b5 (patch)
tree3ceb2594de443f7928c5300d42c00428778eae11 /tests
parentcf24f576891ece60bdf04928d3c39dd0bbb9b5f6 (diff)
feat: add diagnostics module with source-anchored caret errors
Diffstat (limited to 'tests')
-rw-r--r--tests/sema_test.c3
1 files changed, 2 insertions, 1 deletions
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 = { "<test>", source };
+ bool ok = analyze_program(diagnostics, &program);
free_program(&program);
return ok;
}