From 36a5b584362e3de01eea14f99cd981a77fa243c7 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 25 Mar 2026 16:42:16 +0300 Subject: [PATCH] checker: fix c binding compiling to wrong c intermediary (fixes #19046) --- vlib/v/checker/tests/c_binding_confusable_c_err.out | 5 +++++ vlib/v/checker/tests/c_binding_confusable_c_err.vv | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 vlib/v/checker/tests/c_binding_confusable_c_err.out create mode 100644 vlib/v/checker/tests/c_binding_confusable_c_err.vv diff --git a/vlib/v/checker/tests/c_binding_confusable_c_err.out b/vlib/v/checker/tests/c_binding_confusable_c_err.out new file mode 100644 index 000000000..a244a7132 --- /dev/null +++ b/vlib/v/checker/tests/c_binding_confusable_c_err.out @@ -0,0 +1,5 @@ +vlib/v/checker/tests/c_binding_confusable_c_err.vv:1:4: error: invalid character `С` + 1 | fn С.destroy_context(context u32) + | ^ + 2 | + 3 | pub fn destroy_context(context u32) { diff --git a/vlib/v/checker/tests/c_binding_confusable_c_err.vv b/vlib/v/checker/tests/c_binding_confusable_c_err.vv new file mode 100644 index 000000000..4ac96df9b --- /dev/null +++ b/vlib/v/checker/tests/c_binding_confusable_c_err.vv @@ -0,0 +1,6 @@ +fn С.destroy_context(context u32) + +pub fn destroy_context(context u32) { + C.destroy_context(context) +} + -- 2.39.5