summaryrefslogtreecommitdiffstats
path: root/test cases/rust/13 external c dependencies/prog.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test cases/rust/13 external c dependencies/prog.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/rust/13 external c dependencies/prog.rs b/test cases/rust/13 external c dependencies/prog.rs
new file mode 100644
index 0000000..b30ec24
--- /dev/null
+++ b/test cases/rust/13 external c dependencies/prog.rs
@@ -0,0 +1,9 @@
+extern "C" {
+ fn c_accessing_zlib();
+}
+
+fn main() {
+ unsafe {
+ c_accessing_zlib();
+ }
+}