summary refs log tree commit diff
path: root/tests/ui/extern/extern-rust.rs
blob: bacdc7aeecb4c6f74905b72fc5245114032ef5af (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() {}