fix panic in current_prolog_flag/2 when arguments are the same variable

This commit is contained in:
no382001
2026-03-31 09:48:23 +02:00
parent 79a9b950cb
commit 6a10c6d6a5
3 changed files with 12 additions and 4 deletions

View File

@@ -20,6 +20,13 @@ fn issue2588_load_html() {
load_module_test("tests-pl/issue2588.pl", "[element(html,[],[element(head,[],[element(title,[],[[H,e,l,l,o,!]])]),element(body,[],[])])]");
}
// issue #2914
#[test]
#[cfg_attr(miri, ignore = "unsupported operation when isolation is enabled")]
fn issue2914_current_prolog_flag_shared_var() {
load_module_test("tests-pl/issue2914.pl", "false");
}
#[test]
#[cfg_attr(miri, ignore = "unsupported operation when isolation is enabled")]
fn issue3256_load_xml_returns_list() {