rust/tests/ui/extern/extern-rust.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
217 B
Rust
Raw Normal View History

// run-pass
// pretty-expanded FIXME #23616
#[repr(C)]
pub struct Foo(u32);
// ICE trigger, bad handling of differing types between rust and external ABIs
pub extern "C" fn bar() -> Foo {
Foo(0)
}
fn main() {}