aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/native-src/native.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/native-src/native.rs')
-rw-r--r--src/test/run-pass/native-src/native.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/run-pass/native-src/native.rs b/src/test/run-pass/native-src/native.rs
new file mode 100644
index 00000000..22658095
--- /dev/null
+++ b/src/test/run-pass/native-src/native.rs
@@ -0,0 +1,7 @@
+// -*- rust -*-
+
+unsafe fn main() {
+ libc.puts(rustrt.str_buf("hello, native world 1"));
+ libc.puts(rustrt.str_buf("hello, native world 2"));
+ libc.puts(rustrt.str_buf("hello, native world 3"));
+}