// Test: other.sx calls C functions without importing the C module // main imports both c_wrapper.sx and other.sx // other.sx should NOT have access to C functions from c_wrapper #import "../modules/std.sx"; #import "c_wrapper.sx"; #import "other.sx"; main :: () -> s32 { // This works: we import c_wrapper so we have transitive access result := wrapped_add(10, 20); print("wrapped_add(10, 20) = {}\n", result); // This calls other.sx's function which tries to call add_numbers // other.sx did NOT import c_wrapper.sx, so this should fail bad := use_c_directly(); print("use_c_directly() = {}\n", bad); 0; }