summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/extern-rust.rs
blob: 7cea8be59215fc44ce99ac6bf75b711a435006a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}