diff options
Diffstat (limited to 'tests/rust/generic_pointer.rs')
-rw-r--r-- | tests/rust/generic_pointer.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rust/generic_pointer.rs b/tests/rust/generic_pointer.rs new file mode 100644 index 0000000..1167c76 --- /dev/null +++ b/tests/rust/generic_pointer.rs @@ -0,0 +1,11 @@ +#[repr(C)] +pub struct Foo<T> { + a: T, +} + +pub type Boo = Foo<*mut u8>; + +#[no_mangle] +pub extern "C" fn root( + x: Boo, +) { } |