diff options
| author | Rafael Avila de Espindola <espindola@dream.(none)> | 2011-02-07 12:46:28 -0500 |
|---|---|---|
| committer | Rafael Avila de Espindola <espindola@dream.(none)> | 2011-02-07 12:50:04 -0500 |
| commit | 8122e0c54280545c28e8067c0e3a19253fe3aa9b (patch) | |
| tree | e6560391519e60a8c750890af13ea186b91fa91c /src/test | |
| parent | Parse function declarations. (diff) | |
| download | rust-8122e0c54280545c28e8067c0e3a19253fe3aa9b.tar.xz rust-8122e0c54280545c28e8067c0e3a19253fe3aa9b.zip | |
Add support for
native mod foo = "bar" ...
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/native2.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/run-pass/native2.rs b/src/test/run-pass/native2.rs index a6df93f5..4d2f0ad9 100644 --- a/src/test/run-pass/native2.rs +++ b/src/test/run-pass/native2.rs @@ -3,5 +3,9 @@ native "rust" mod rustrt { fn vec_buf[T](vec[T] v, uint offset) -> vbuf; } +native mod libc = "libc.dylib" { + fn write(int fd, rustrt.vbuf buf, uint count) -> int; +} + fn main(vec[str] args) { } |