Skip to content

Commit 628e156

Browse files
committed
Add link test for vsl
1 parent d7a55c9 commit 628e156

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

intel-mkl-sys/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ extern crate intel_mkl_src;
2121

2222
include!("mkl.rs");
2323

24+
// Test linking
2425
#[cfg(test)]
2526
mod tests {
2627
use super::*;
28+
use std::ffi::c_void;
2729

2830
#[test]
2931
fn cos() {
@@ -33,4 +35,16 @@ mod tests {
3335
vdCos(1024_i32, a.as_ptr(), b.as_mut_ptr());
3436
}
3537
}
38+
39+
#[test]
40+
fn new_stream() {
41+
let mut stream: *mut c_void = std::ptr::null_mut();
42+
unsafe {
43+
vslNewStream(
44+
&mut stream as *mut *mut c_void,
45+
VSL_BRNG_MT19937 as i32,
46+
777,
47+
);
48+
}
49+
}
3650
}

0 commit comments

Comments
 (0)