From 16aaaa19a3ef4220726007d3e644ced0c9e06513 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 9 Sep 2019 01:08:34 +0200 Subject: Allow referencing code in imported file (right now for function calls, allow calling a function in another file) --- tests/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/main.c') diff --git a/tests/main.c b/tests/main.c index b2b53cc..eec3a78 100644 --- a/tests/main.c +++ b/tests/main.c @@ -19,7 +19,7 @@ static int num_tests_run = 0; }\ }while(0) -static CHECK_RESULT int test_hash_map() { +static CHECK_RESULT int test_hash_map(void) { ArenaAllocator arena_allocator; HashMapType(BufferView, int) hash_map; int value; @@ -132,7 +132,7 @@ static CHECK_RESULT int get_thread_count_env_var(int *thread_count) { return 0; } -static int print_extern() { +static int print_extern(void) { printf("hello from amalgam extern func, print_extern!\n"); return 0; } @@ -228,7 +228,7 @@ static void test_load_error(const char *filepath, const char *expected_error) { free(expected_data.expected_error); } -static void run_all_tests() { +static void run_all_tests(void) { test_load("tests/main.amal"); test_load("tests/utf8bom.amal"); test_load("tests/bytecode.amal"); -- cgit v1.2.3