2019-10-29 00:00:00 +00:00
|
|
|
// build-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 13:02:01 +00:00
|
|
|
#![allow(non_camel_case_types)]
|
2020-06-28 00:11:04 +00:00
|
|
|
#![warn(clashing_extern_declarations)]
|
2018-08-31 13:02:01 +00:00
|
|
|
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2012-04-13 03:24:07 +00:00
|
|
|
mod a {
|
2015-03-26 00:06:52 +00:00
|
|
|
pub type rust_task = usize;
|
2013-03-05 22:42:58 +00:00
|
|
|
pub mod rustrt {
|
2013-06-22 18:43:15 +00:00
|
|
|
use super::rust_task;
|
2020-09-01 21:12:52 +00:00
|
|
|
extern "C" {
|
2014-06-25 19:47:34 +00:00
|
|
|
pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
|
2013-03-05 22:42:58 +00:00
|
|
|
}
|
2012-04-13 03:24:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod b {
|
2013-01-30 23:56:40 +00:00
|
|
|
pub type rust_task = bool;
|
2013-03-05 22:42:58 +00:00
|
|
|
pub mod rustrt {
|
2013-06-22 18:43:15 +00:00
|
|
|
use super::rust_task;
|
2020-09-01 21:12:52 +00:00
|
|
|
extern "C" {
|
2014-06-25 19:47:34 +00:00
|
|
|
pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
|
2020-09-01 21:12:52 +00:00
|
|
|
//~^ WARN `rust_task_is_unwinding` redeclared with a different signature
|
2013-03-05 22:42:58 +00:00
|
|
|
}
|
2012-04-13 03:24:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-01 21:12:52 +00:00
|
|
|
pub fn main() {}
|