aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_inject/tests/helpers/direct_cuinit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zluda_inject/tests/helpers/direct_cuinit.rs')
-rw-r--r--zluda_inject/tests/helpers/direct_cuinit.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/zluda_inject/tests/helpers/direct_cuinit.rs b/zluda_inject/tests/helpers/direct_cuinit.rs
new file mode 100644
index 0000000..8341a60
--- /dev/null
+++ b/zluda_inject/tests/helpers/direct_cuinit.rs
@@ -0,0 +1,9 @@
+#![crate_type = "bin"]
+
+extern "system" {
+ fn cuInit(flags: u32) -> u32;
+}
+
+fn main() {
+ unsafe { cuInit(0) };
+}