From c29596e88f5c31929fa655f56dec7a1b7012a1bd Mon Sep 17 00:00:00 2001 From: kalsprite Date: Fri, 21 Aug 2026 17:59:02 -0700 Subject: [PATCH] fix test typo --- .../test_issue_foreign_redeclaration.odin | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/tests/issues/test_issue_foreign_redeclaration.odin b/tests/issues/test_issue_foreign_redeclaration.odin index bed542ab6..2b5255765 100644 --- a/tests/issues/test_issue_foreign_redeclaration.odin +++ b/tests/issues/test_issue_foreign_redeclaration.odin @@ -1,25 +1,9 @@ -// The field comparison that guards this had been reading a type's name as its field list, so -// signatures this different were accepted whenever the two names differed in length +// Two declarations of the same foreign symbol whose parameters reach a named struct through a +// slice or a field read the wrong member of the type union and segfaulted the compiler package test_issues foreign import lib "this_library_does_not_exist" -Ints :: struct { a: i32, b: i32 } -Floats :: struct { c: f32, d: f32 } - -@(default_calling_convention="c") -foreign lib { - @(link_name="mismatched") mismatched_1 :: proc(x: []Ints) --- -} - -@(default_calling_convention="c") -foreign lib { - @(link_name="mismatched") mismatched_2 :: proc(x: []Floats) --- -} - -// Two declarations of the same foreign symbol whose parameters reach a named struct through a -// slice or a field read the wrong member of the type union and segfaulted the compiler - Inner :: struct { a: i32, b: i32 } Other :: struct { c: i32, d: i32 }