check rust programs (#4688)

This commit is contained in:
Jack May
2019-06-20 07:43:31 -07:00
committed by GitHub
parent f8523db51d
commit b430762a23
16 changed files with 46 additions and 18 deletions

View File

@ -1,6 +1,7 @@
//! @brief Example Rust-based BPF program that prints out the parameters passed to it
#![no_std]
#![allow(unreachable_code)]
extern crate solana_sdk_bpf_utils;
@ -37,7 +38,7 @@ fn process_instruction(
{
// Test - arch config
#[cfg(not(target_arch = "bpf"))]
assert!(false);
panic!();
}
{