diff options
| author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-06-28 08:21:13 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-06-28 08:21:13 -0400 |
| commit | ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca (patch) | |
| tree | 47a496b72d9052e829b476028d2a678d7eda6908 /src/test | |
| parent | 663aa7663533b6b1cbeb2229c95b4bbde1a5d18e (diff) | |
| download | rust-ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca.tar.gz rust-ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca.zip | |
Use "" in the native_name as an indication that no extra options have to
be passed to the "linker". Use that for libc.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/binops.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/import-glob-1.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/native-opaque-type.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/native2.rs | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/test/run-pass/binops.rs b/src/test/run-pass/binops.rs index e265028af8c..4e3dee3ccf9 100644 --- a/src/test/run-pass/binops.rs +++ b/src/test/run-pass/binops.rs @@ -112,7 +112,7 @@ fn test_fn() { assert (h1 >= h2); } -native "rust" mod native_mod = "c" { +native "rust" mod native_mod = "" { fn str_byte_len(str s) -> vec[u8]; fn str_alloc(uint n_bytes) -> str; } diff --git a/src/test/run-pass/import-glob-1.rs b/src/test/run-pass/import-glob-1.rs index 717e722a87a..72f44d12c1a 100644 --- a/src/test/run-pass/import-glob-1.rs +++ b/src/test/run-pass/import-glob-1.rs @@ -12,7 +12,7 @@ mod a1 { // } // | | | // | | | mod a2 { // | | | - native mod b1 = "c" { // | | | + native mod b1 = "" { // | | | import a1::b2::*; // | <-/ -/ export word_traveler; // | } // | diff --git a/src/test/run-pass/native-opaque-type.rs b/src/test/run-pass/native-opaque-type.rs index 1a304fddf83..fa4a5e25e5a 100644 --- a/src/test/run-pass/native-opaque-type.rs +++ b/src/test/run-pass/native-opaque-type.rs @@ -1,6 +1,6 @@ -native "cdecl" mod libc = "c" { +native "cdecl" mod libc = "" { type file_handle; } diff --git a/src/test/run-pass/native2.rs b/src/test/run-pass/native2.rs index 40bb8304d7f..d03440462ce 100644 --- a/src/test/run-pass/native2.rs +++ b/src/test/run-pass/native2.rs @@ -5,14 +5,14 @@ native "rust" mod rustrt { fn vec_buf[T](vec[T] v, uint offset) -> vbuf; } -native "rust" mod bar = "c" { } +native "rust" mod bar = "" { } -native "cdecl" mod zed = "c" { } +native "cdecl" mod zed = "" { } -native "cdecl" mod libc = "c" { +native "cdecl" mod libc = "" { fn write(int fd, rustrt::vbuf buf, uint count) -> int; } -native "cdecl" mod baz = "c" { } +native "cdecl" mod baz = "" { } fn main(vec[str] args) { } \ No newline at end of file |
