blob: cef75e45b02d34a0a9446d6c9779d69a3bf31dd2 [file] [edit]
// This test makes sure that the following symbols are not linted against
// in a #[no_std] context.
//@ check-pass
#![no_std]
#![crate_type = "lib"]
use core::ffi::{c_char, c_int, c_void};
#[no_mangle]
pub fn open() {}
extern "C" {
pub fn read();
pub fn write();
}
#[no_mangle]
pub static close: () = ();
extern "C" {
pub fn malloc();
pub fn realloc();
pub fn free();
pub fn exit();
}