2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2014-08-25 12:03:43 -07:00
|
|
|
// aux-build:issue-15562.rs
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-03-27 10:22:44 -07:00
|
|
|
extern crate issue_15562 as i;
|
2014-08-25 12:03:43 -07:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
unsafe {
|
|
|
|
transmute();
|
|
|
|
i::transmute();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// We declare this so we don't run into unresolved symbol errors
|
|
|
|
// The above extern is NOT `extern "rust-intrinsic"` and thus
|
|
|
|
// means it'll try to find a corresponding symbol to link to.
|
|
|
|
#[no_mangle]
|
2020-09-01 17:28:11 -04:00
|
|
|
pub extern "C" fn transmute() {}
|