rust/tests/run-pass/strings.rs

24 lines
360 B
Rust
Raw Normal View History

#![crate_type = "lib"]
2016-03-19 00:19:39 -05:00
#![feature(custom_attribute)]
#![allow(dead_code, unused_attributes)]
#[miri_run]
fn empty() -> &'static str {
""
}
#[miri_run]
fn hello() -> &'static str {
"Hello, world!"
}
2016-03-19 00:20:59 -05:00
#[miri_run]
fn hello_bytes() -> &'static [u8; 13] {
b"Hello, world!"
}
2016-03-21 19:51:25 -05:00
#[miri_run]
fn hello_bytes_fat() -> &'static [u8] {
b"Hello, world!"
}