diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/sema_test.c | 3 |
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; } |
