tests: Add a test for #708

This commit is contained in:
Emilio Cobos Álvarez
2021-08-24 11:44:51 +02:00
parent cbd4260bdc
commit 577b041933
10 changed files with 60 additions and 9 deletions
+8
View File
@@ -5,7 +5,15 @@ pub struct Foo<T> {
pub type Boo = Foo<u8>;
/// cbindgen:prefix-with-name=true
#[repr(C)]
pub enum Bar {
Some,
Thing,
}
#[no_mangle]
pub extern "C" fn root(
x: Boo,
y: Bar,
) { }