]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-15562.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / test / ui / issues / issue-15562.rs
1 // run-pass
2 // aux-build:issue-15562.rs
3
4 // pretty-expanded FIXME #23616
5
6 extern crate issue_15562 as i;
7
8 pub fn main() {
9     unsafe {
10         transmute();
11         i::transmute();
12     }
13 }
14
15 // We declare this so we don't run into unresolved symbol errors
16 // The above extern is NOT `extern "rust-intrinsic"` and thus
17 // means it'll try to find a corresponding symbol to link to.
18 #[no_mangle]
19 pub extern "C" fn transmute() {}