cbindgen/tests/rust/monomorph_2.rs
2020-10-31 17:01:44 +01:00

16 lines
196 B
Rust

#[repr(C)]
struct List<T> {
members: *mut T,
count: usize
}
struct A;
struct B;
#[no_mangle]
pub extern "C" fn foo(a: List<A>) { }
#[no_mangle]
pub extern "C" fn bar(b: List<B>) { }