Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
abi
/
extern
/
extern-c-method-return-struct.rs
blob: 08cfe495ba2a3c98ee7ffdc23652cd6bd576f9c8 [
file
]
//! Regression test for <https://github.com/rust-lang/rust/issues/26997>.
//@ build-pass
#![
allow
(
dead_code
)]
#[
repr
(
C
)]
pub
struct
Foo
{
x
:
isize
,
y
:
isize
}
impl
Foo
{
pub
extern
"C"
fn
foo_new
()
->
Foo
{
Foo
{
x
:
21
,
y
:
33
}
}
}
fn
main
()
{}