diff options
| author | Brian Anderson <[email protected]> | 2011-03-07 21:21:01 -0500 |
|---|---|---|
| committer | Brian Anderson <[email protected]> | 2011-03-07 21:21:01 -0500 |
| commit | 9fc4db6b89213afdf45c02fc2bd2be62b0ddc40c (patch) | |
| tree | 6c84574116273f91cbe89abd256b9f809adf97de /src/test/run-pass/native2.rs | |
| parent | Allow the else part of an expr_if to be either expr_if or expr_block (diff) | |
| parent | rustc: Cast the LLVM representations of tag types when constructing boxes. Un... (diff) | |
| download | rust-9fc4db6b89213afdf45c02fc2bd2be62b0ddc40c.tar.xz rust-9fc4db6b89213afdf45c02fc2bd2be62b0ddc40c.zip | |
Merge branch 'master' into recursive-elseif
Conflicts:
src/Makefile
src/comp/front/ast.rs
src/comp/front/parser.rs
src/comp/middle/fold.rs
src/comp/middle/trans.rs
Diffstat (limited to 'src/test/run-pass/native2.rs')
| -rw-r--r-- | src/test/run-pass/native2.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/run-pass/native2.rs b/src/test/run-pass/native2.rs new file mode 100644 index 00000000..4815345a --- /dev/null +++ b/src/test/run-pass/native2.rs @@ -0,0 +1,20 @@ +native "rust" mod rustrt { + type vbuf; + 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) { +} |