about summary refs log tree commit diff
path: root/tests/ui/extern/extern-rust.rs
blob: b4a4a49810e669b85275e9faf84b82cdc085a429 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-pass

#[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() {}