]> git.lizzy.rs Git - rust.git/blob - tests/target/extern.rs
Merge pull request #345 from Manishearth/fix-match
[rust.git] / tests / target / extern.rs
1
2 extern {
3     fn c_func(x: *mut *mut libc::c_void);
4
5     fn c_func(x: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,
6               y: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY);
7
8     #[test123]
9     fn foo() -> uint64_t;
10
11     pub fn bar();
12 }
13
14 extern {
15     fn DMR_GetDevice(pHDev: *mut HDEV,
16                      searchMode: DeviceSearchMode,
17                      pSearchString: *const c_char,
18                      devNr: c_uint,
19                      wildcard: c_char)
20                      -> TDMR_ERROR;
21
22     fn quux() -> (); // Post comment
23 }
24
25 extern "Rust" {
26     static ext: u32;
27     // Some comment.
28     pub static mut var: SomeType;
29 }