Fix undefined symbol "custom panic" in BPF test programs (#13840)

* Implements missing "custom_panic" symbol
This commit is contained in:
Alexander Meißner
2020-12-01 16:52:20 +01:00
committed by GitHub
parent 83aaf18d6e
commit aebc3a17ce
11 changed files with 62 additions and 24 deletions

View File

@ -20,6 +20,12 @@ fn return_sstruct() -> SStruct {
SStruct { x: 1, y: 2, z: 3 }
}
#[no_mangle]
fn custom_panic(info: &core::panic::PanicInfo<'_>) {
// Full panic reporting
msg!(&format!("{}", info));
}
entrypoint_deprecated!(process_instruction);
fn process_instruction(
program_id: &Pubkey,