about summary refs log tree commit diff
path: root/tests/ui-fulldeps/extern-mod-syntax.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui-fulldeps/extern-mod-syntax.rs')
-rw-r--r--tests/ui-fulldeps/extern-mod-syntax.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui-fulldeps/extern-mod-syntax.rs b/tests/ui-fulldeps/extern-mod-syntax.rs
new file mode 100644
index 00000000000..230194c5377
--- /dev/null
+++ b/tests/ui-fulldeps/extern-mod-syntax.rs
@@ -0,0 +1,11 @@
+// run-pass
+
+#![allow(unused_imports)]
+#![feature(rustc_private)]
+
+extern crate libc;
+use libc::c_void;
+
+pub fn main() {
+    println!("Hello world!");
+}