diff options
Diffstat (limited to 'tests/main.c')
-rw-r--r-- | tests/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/main.c b/tests/main.c index 019f8d9..0b3a744 100644 --- a/tests/main.c +++ b/tests/main.c @@ -251,6 +251,10 @@ static void test_load(const char *filepath) { fprintf(stderr, "Unexpected error (alloc failure)\n"); FAIL_TEST_CLEANUP(full_path); } + if(amal_program_register_extern_func(&program, create_buffer_view_auto("printf"), printf, sizeof(const char*)) != 0) { + fprintf(stderr, "Unexpected error (alloc failure)\n"); + FAIL_TEST_CLEANUP(full_path); + } result = amal_compiler_load_file(&options, &program, filepath); if(result != AMAL_COMPILER_OK) { |