//! Removed native IDs cannot enter the sealed execution path. use prometeu_bytecode::assemble; use prometeu_test_support::program::{TestProgram, int64_signature}; use prometeu_vm::{LoaderPatchError, ValidatedProgramImage, VmInitError}; #[test] fn loader_rejects_legacy_input_syscall_id() { let bytes = TestProgram::single(assemble("SYSCALL 0x2200\nHALT").unwrap(), int64_signature(0, 0), 0, 4) .serialize(); assert!(matches!( ValidatedProgramImage::load( &bytes, &mut prometeu_bytecode::load_limits::LoadBudget::new(Default::default()), 0 ), Err(VmInitError::LoaderPatchFailed(LoaderPatchError::RawSyscallInPreloadArtifact { syscall_id: 0x2200, .. })) )); }