]> git.lizzy.rs Git - rust.git/blob - tests/ui/foreign/foreign2.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / foreign / foreign2.rs
1 // run-pass
2 #![allow(dead_code)]
3 // ignore-wasm32-bare no libc to test ffi with
4 // pretty-expanded FIXME #23616
5 #![feature(rustc_private)]
6
7 extern crate libc;
8
9 mod bar {
10     extern "C" {}
11 }
12
13 mod zed {
14     extern "C" {}
15 }
16
17 mod mlibc {
18     use libc::{c_int, c_void, size_t, ssize_t};
19
20     extern "C" {
21         pub fn write(fd: c_int, buf: *const c_void, count: size_t) -> ssize_t;
22     }
23 }
24
25 mod baz {
26     extern "C" {}
27 }
28
29 pub fn main() {}