2019-10-28 19:00:00 -05:00
|
|
|
// build-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2016-03-21 21:40:28 -05:00
|
|
|
pub struct Foo {
|
|
|
|
x: isize,
|
|
|
|
y: isize
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo {
|
2020-05-28 09:57:09 -05:00
|
|
|
#[allow(improper_ctypes_definitions)]
|
2020-09-01 16:28:11 -05:00
|
|
|
pub extern "C" fn foo_new() -> Foo {
|
2016-03-21 21:40:28 -05:00
|
|
|
Foo { x: 21, y: 33 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|