blob: 1fa33a24ce4240a8e9ad040e64aed4df63891c5b [file] [edit]
#![crate_type = "lib"]
#[export_name = "\0foo"]
//~^ ERROR `export_name` may not contain null characters
fn has_null_byte() {}
#[export_name = "foo\0"]
//~^ ERROR `export_name` may not contain null characters
fn null_terminated() {}
#[export_name = "\0"]
//~^ ERROR `export_name` may not contain null characters
fn empty_null() {}
#[export_name = ""]
//~^ ERROR `export_name` may not be empty
fn empty() {}
#[export_name = "\
"]
//~^^ ERROR `export_name` may not be empty
fn empty_newline() {}