Skip to content

Commit 1a4e243

Browse files
committed
Fix missing type alias in tests/test_type_checker.ml
Signed-off-by: Cong Wang <cwang@multikernel.io>
1 parent d9ededa commit 1a4e243

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_type_checker.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,8 @@ let test_xdp_signature_validation () =
10701070
let test_kernel_function_calls_from_attributed () =
10711071
(* Test the specific bug case: kernel function called from attributed function *)
10721072
let program_text = {|
1073+
type IpAddress = u32
1074+
10731075
@helper
10741076
fn get_src_ip(ctx: *xdp_md) -> IpAddress {
10751077
return 0x08080808 // 8.8.8.8 as u32
@@ -1161,6 +1163,8 @@ fn main_kernel_function(ctx: *xdp_md) -> u32 {
11611163
(** Test function call type resolution with user-defined types *)
11621164
let test_function_call_user_type_resolution () =
11631165
let program_text = {|
1166+
type IpAddress = u32
1167+
11641168
@helper
11651169
fn extract_ip_from_context(ctx: *xdp_md) -> IpAddress {
11661170
return 0x7f000001 // 127.0.0.1 as u32

0 commit comments

Comments
 (0)