diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-02-23 14:06:37 -0500 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <[email protected]> | 2011-02-23 14:06:37 -0500 |
| commit | ffcb4613700c968041f891985927b77f70a51c0c (patch) | |
| tree | ed5a0566378482e48723d106edab384c1bbfac25 /src/test | |
| parent | Handle the new ty_native_fn in type check. (diff) | |
| download | rust-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.rs | 9 |
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) { } |