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