summaryrefslogtreecommitdiffstats
path: root/dom/media/gtest/hello.rs
blob: cd111882ae8769aeace84779180dd0c5725cf4c2 (plain)
1
2
3
4
5
6
#[no_mangle]
pub extern fn test_rust() -> *const u8 {
    // NB: rust &str aren't null terminated.
    let greeting = "hello from rust.\0";
    greeting.as_ptr()
}