]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT |
2 | // file at the top-level directory of this distribution and at | |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
b7449926 | 11 | // run-pass |
abe05a73 | 12 | // ignore-wasm32-bare no libc to test ffi with |
c34b1796 AL |
13 | // pretty-expanded FIXME #23616 |
14 | ||
15 | #![feature(libc)] | |
1a4d82fc JJ |
16 | |
17 | extern crate libc; | |
18 | ||
223e47cc | 19 | mod bar { |
1a4d82fc | 20 | extern {} |
223e47cc LB |
21 | } |
22 | ||
23 | mod zed { | |
1a4d82fc | 24 | extern {} |
223e47cc LB |
25 | } |
26 | ||
1a4d82fc JJ |
27 | mod mlibc { |
28 | use libc::{c_int, c_void, size_t, ssize_t}; | |
29 | ||
30 | extern { | |
31 | pub fn write(fd: c_int, buf: *const c_void, count: size_t) -> ssize_t; | |
223e47cc LB |
32 | } |
33 | } | |
34 | ||
35 | mod baz { | |
1a4d82fc | 36 | extern {} |
223e47cc LB |
37 | } |
38 | ||
39 | pub fn main() { } |