about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass-dep/libc/ccrandomgeneratebytes_apple.rs
blob: afcc02bc8397158834cdea999d3b2cc601a14561 (plain)
1
2
3
4
5
6
7
//@only-target: apple # This directly tests apple-only functions

fn main() {
    let mut bytes = [0u8; 24];
    let ret = unsafe { libc::CCRandomGenerateBytes(bytes.as_mut_ptr().cast(), bytes.len()) };
    assert_eq!(ret, libc::kCCSuccess);
}