rust/tests/run-pass/strings.rs
2016-04-14 14:54:59 +02:00

24 lines
360 B
Rust

#![crate_type = "lib"]
#![feature(custom_attribute)]
#![allow(dead_code, unused_attributes)]
#[miri_run]
fn empty() -> &'static str {
""
}
#[miri_run]
fn hello() -> &'static str {
"Hello, world!"
}
#[miri_run]
fn hello_bytes() -> &'static [u8; 13] {
b"Hello, world!"
}
#[miri_run]
fn hello_bytes_fat() -> &'static [u8] {
b"Hello, world!"
}