blob: 679f0b37758ab0fac796ace59a8bc8bf1047c0d4 [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/26997>.
//@ build-pass
#![allow(dead_code)]
pub struct Foo {
x: isize,
y: isize
}
impl Foo {
#[allow(improper_ctypes_definitions)]
pub extern "C" fn foo_new() -> Foo {
Foo { x: 21, y: 33 }
}
}
fn main() {}