aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-02-23 14:06:37 -0500
committerRafael Ávila de Espíndola <[email protected]>2011-02-23 14:06:37 -0500
commitffcb4613700c968041f891985927b77f70a51c0c (patch)
treeed5a0566378482e48723d106edab384c1bbfac25 /src/test
parentHandle the new ty_native_fn in type check. (diff)
downloadrust-ffcb4613700c968041f891985927b77f70a51c0c.tar.xz
rust-ffcb4613700c968041f891985927b77f70a51c0c.zip
Parse the abi in native modules.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/native2.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/run-pass/native2.rs b/src/test/run-pass/native2.rs
index 4d2f0ad9..4815345a 100644
--- a/src/test/run-pass/native2.rs
+++ b/src/test/run-pass/native2.rs
@@ -3,9 +3,18 @@ native "rust" mod rustrt {
fn vec_buf[T](vec[T] v, uint offset) -> vbuf;
}
+native "rust" mod bar = "foo" {
+}
+
+native mod zed {
+}
+
native mod libc = "libc.dylib" {
fn write(int fd, rustrt.vbuf buf, uint count) -> int;
}
+native "cdecl" mod baz {
+}
+
fn main(vec[str] args) {
}