From 95c1bf6702dc048152850ce0b7e24f2ecdffcdcc Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Thu, 27 Feb 2025 09:17:39 -0600 Subject: [PATCH] Fix C ABI test file bb syntax --- tests/c_abi.bbb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/c_abi.bbb b/tests/c_abi.bbb index dd5d09f..84e7eb4 100644 --- a/tests/c_abi.bbb +++ b/tests/c_abi.bbb @@ -283,7 +283,7 @@ ByVal = struct >res = c_modify_by_ref_param({ .val = 1, .arr = undefined, }); require(res.val == 42); - >function_pointer = c_func_ptr_byval&; + >function_pointer = &c_func_ptr_byval; function_pointer(1, 2, { .origin = { .x = 9, .y = 10, .z = 11, }, .size = { .width = 12, .height = 13, .depth = 14, }, }, 3, 4, 5); return 0; } @@ -328,7 +328,7 @@ ByVal = struct require(x == -4); } -[export] bb_ptr = fn [cc(c)] (x: *u8) void +[export] bb_ptr = fn [cc(c)] (x: &u8) void { require(#int_from_pointer(x) == 0xdeadbeef); }