From 0b43bf9782042250afc06ebdce23a3bcea0fd10b Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 5 Feb 2012 17:54:52 -0800 Subject: [PATCH] test: Add test for #901. Closes #901 --- src/test/run-pass/nil-decl-in-native.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/test/run-pass/nil-decl-in-native.rs diff --git a/src/test/run-pass/nil-decl-in-native.rs b/src/test/run-pass/nil-decl-in-native.rs new file mode 100644 index 00000000000..126a1a371be --- /dev/null +++ b/src/test/run-pass/nil-decl-in-native.rs @@ -0,0 +1,6 @@ +// Issue #901 +#[nolink] +native mod libc { + fn printf(x: ()); +} +fn main() { } \ No newline at end of file