From 51213a7166196f38080cde61224daba034d16c60 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Mon, 19 Oct 2026 12:34:28 +0000 Subject: fix(driver): bind MinGW JIT stdio locks to the host CRT Resolve _lock_file and _unlock_file to the host compatibility functions so JIT stdio cannot pick incompatible locks from another CRT DLL. Cover fprintf inside a C++ catch with exact stderr expectations. Co-Authored-By: Claude Opus 5.5 --- tests/i/extern-cc-runtime/runtime.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/i/extern-cc-runtime/runtime.cc') diff --git a/tests/i/extern-cc-runtime/runtime.cc b/tests/i/extern-cc-runtime/runtime.cc index fd57538..be4e4c3 100644 --- a/tests/i/extern-cc-runtime/runtime.cc +++ b/tests/i/extern-cc-runtime/runtime.cc @@ -1,3 +1,4 @@ +#include #include #include extern "C" int string_length() { @@ -8,6 +9,7 @@ extern "C" int string_length() { extern "C" void string_throw() { try { throw std::invalid_argument("string failure"); } catch (const std::exception &e) { + std::fprintf(stderr, "%s\n", e.what()); if (std::string(e.what()) == "string failure") throw; } } -- cgit v1.3.1-4-g156e