2017-01-15 19:50:27 -06:00
|
|
|
// rustfmt-normalize_comments: true
|
2015-09-21 13:02:45 -05:00
|
|
|
|
2017-08-08 10:16:35 -05:00
|
|
|
extern crate foo;
|
2018-01-03 19:15:13 -06:00
|
|
|
extern crate foo as bar;
|
2017-08-08 10:16:35 -05:00
|
|
|
|
|
|
|
extern crate chrono;
|
|
|
|
extern crate dotenv;
|
|
|
|
extern crate futures;
|
|
|
|
|
|
|
|
extern crate bar;
|
|
|
|
extern crate foo;
|
2017-07-25 12:46:09 -05:00
|
|
|
|
2018-01-03 19:15:13 -06:00
|
|
|
// #2315
|
|
|
|
extern crate proc_macro;
|
|
|
|
extern crate proc_macro2;
|
|
|
|
|
2018-11-15 02:37:42 -06:00
|
|
|
// #3128
|
|
|
|
extern crate serde; // 1.0.78
|
|
|
|
extern crate serde_derive; // 1.0.78
|
|
|
|
extern crate serde_json; // 1.0.27
|
|
|
|
|
2015-11-22 09:07:38 -06:00
|
|
|
extern "C" {
|
2015-09-21 13:02:45 -05:00
|
|
|
fn c_func(x: *mut *mut libc::c_void);
|
|
|
|
|
2017-06-11 23:01:41 -05:00
|
|
|
fn c_func(
|
|
|
|
x: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,
|
|
|
|
y: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY,
|
|
|
|
);
|
2015-09-21 13:02:45 -05:00
|
|
|
|
|
|
|
#[test123]
|
|
|
|
fn foo() -> uint64_t;
|
|
|
|
|
|
|
|
pub fn bar();
|
|
|
|
}
|
|
|
|
|
2015-11-22 09:07:38 -06:00
|
|
|
extern "C" {
|
2017-06-11 23:01:41 -05:00
|
|
|
fn DMR_GetDevice(
|
|
|
|
pHDev: *mut HDEV,
|
|
|
|
searchMode: DeviceSearchMode,
|
|
|
|
pSearchString: *const c_char,
|
|
|
|
devNr: c_uint,
|
|
|
|
wildcard: c_char,
|
|
|
|
) -> TDMR_ERROR;
|
2015-09-21 13:02:45 -05:00
|
|
|
|
|
|
|
fn quux() -> (); // Post comment
|
2017-09-04 20:22:17 -05:00
|
|
|
|
|
|
|
pub type Foo;
|
|
|
|
|
|
|
|
type Bar;
|
2015-09-21 13:02:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
extern "Rust" {
|
|
|
|
static ext: u32;
|
|
|
|
// Some comment.
|
|
|
|
pub static mut var: SomeType;
|
|
|
|
}
|
2015-10-10 15:53:20 -05:00
|
|
|
|
2015-11-22 09:07:38 -06:00
|
|
|
extern "C" {
|
2017-06-11 23:01:41 -05:00
|
|
|
fn syscall(
|
|
|
|
number: libc::c_long, // comment 1
|
|
|
|
// comm 2
|
|
|
|
... // sup?
|
|
|
|
) -> libc::c_long;
|
2015-10-10 15:53:20 -05:00
|
|
|
|
|
|
|
fn foo(x: *const c_char, ...) -> libc::c_long;
|
|
|
|
}
|
2015-10-16 15:05:44 -05:00
|
|
|
|
2015-11-22 09:07:38 -06:00
|
|
|
extern "C" {
|
2017-06-11 23:01:41 -05:00
|
|
|
pub fn freopen(
|
|
|
|
filename: *const c_char,
|
|
|
|
mode: *const c_char,
|
|
|
|
mode2: *const c_char,
|
|
|
|
mode3: *const c_char,
|
|
|
|
file: *mut FILE,
|
|
|
|
) -> *mut FILE;
|
2015-10-16 15:05:44 -05:00
|
|
|
}
|
2016-03-14 00:55:55 -05:00
|
|
|
|
|
|
|
extern "C" {}
|